Skip to content

Another issue with add-third-party on Windows with version 2.5.0 #624

Open
@RalfSchumacher

Description

After switching from 2.4.0 to 2.5.0, on windows only, the plugin reports the following error:
[ERROR] Failed to execute goal org.codehaus.mojo:license-maven-plugin:2.4.0:add-third-party (add-third-party) on project
my-project: There are some forbidden licenses used, please check your dependencies. -> [Help 1]

It seems, that my license configuration is not used anymore.

The plugin works fine in linux environments.

Example plugin configuration:

<configuration>
    <licenseName>my-project-</licenseName>
    <includedLicenses>file:${project.basedir}/../../license/included-licenses.txt</includedLicenses>
    <licenseMergesUrl>file:${project.basedir}/../../license/license-merges.txt</licenseMergesUrl>
    <missingFile>${project.basedir}/../../license/missing.properties</missingFile>
    <fileTemplate>${project.basedir}/../../license/template.ftl</fileTemplate>
    <outputDirectory>${project.basedir}/target/generated-sources/license</outputDirectory>
    <thirdPartyFilename>license_${project.artifactId}.csv</thirdPartyFilename>
    <excludedGroups>my.project.*</excludedGroups>
    <includeTransitiveDependencies>true</includeTransitiveDependencies>
    <failOnBlacklist>true</failOnBlacklist>
    <failOnMissing>true</failOnMissing>
</configuration>

I am using a mono repo and have a central licence configuration which is placed outside the current module ("../.."), so that it can be reused by other modules as well.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions