license-maven-plugin not recognizing the dependency but reporting missing license for it

156 views
Skip to first unread message

Markus Kluckow

unread,
Jan 28, 2016, 12:45:20 PM1/28/16
to mojohaus-dev
Hello,

I am working on a project, that is using the org.codehaus.mojo license-maven-plugin.
When running a maven build the following console output is showing up:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building commons
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.0.201403182114:prepare-agent (prepare-unit-tests) @ commons ---
[INFO] surefire.argLine set to -javaagent:C:\\Users\\kluckow\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.7.0.2014
03182114\\org.jacoco.agent-0.7.0.201403182114-runtime.jar=destfile=c:\\Development\\Projekte\\commons\\tar
get\\jacoco-unit.exec
[INFO]
          ###AND NOW COMES THE IMPORTANT PART###
[INFO] --- license-maven-plugin:1.8:add-third-party (default) @ commons ---
[WARNING] No license name defined for org.hibernate.javax.persistence--hibernate-jpa-2.0-api--1.0.1.Final
[INFO] Load missing file c:\Development\Projekte\commons\src\license\THIRD-PARTY.properties
          ###FIRST IT TELLS THAT THE DEPENDENCY DOES NOT EXIST###
[WARNING] dependency [maven.dependencies--test--4.11.7-SNAPSHOT] does not exist in project, remove it from the missing file.
[INFO] Missing file c:\Development\Projekte\commons\src\license\THIRD-PARTY.properties is up-to-date.
         ###AND AFTERWARDS SAYING THAT THE NOT EXISTING DEPENDENCY IS LACKING A LICENSE###
[WARNING] There is 1 dependencies with no license :
[WARNING]  - maven.dependencies--test--4.11.7-SNAPSHOT
[INFO] Excluded licenses (blacklist): [AGPL]
[INFO] Writing third-party file to c:\Development\Projekte\commons\target\generated-sources\license\THIRD-PARTY.txt
[INFO] Regenerate missing license file c:\Development\Projekte\commons\src\license\THIRD-PARTY.properties
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.310 s
[INFO] Finished at: 2016-01-28T18:29:25+01:00
[INFO] Final Memory: 46M/365M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:license-maven-plugin:1.8:add-third-party (default) on project commons:
There are some dependencies with no license, please fill the file c:\Development\Projekte\commons\src\license\THIRD-PARTY.properties -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:


I searched quite a while here and there, but could not find anything like this.
So does anyone of you have ever faced this problem or can come up with suggestions?

If you need more information, just tell me please.



Thank you in advance!


Markus Kluckow
Reply all
Reply to author
Forward
0 new messages