Open
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.
Metadata
Assignees
Labels
No labels
Activity