mojohaus/license-maven-plugin

Is multimodule working when using aggregate-add-third-party?

Open

#107 opened on Oct 9, 2017

View on GitHub
 (12 comments) (1 reaction) (0 assignees)Java (127 forks)auto 404
add-third-partyhelp wanted

Repository metrics

Stars
 (115 stars)
PR merge metrics
 (PR metrics pending)

Description

For some reason when I use 1.14 version plus the '--projects' flag to just run the aggregate goal. it skips the multimodule as you can see below:

 mvn license:aggregate-add-third-party -Pgenerate-third-party -pl multimodule-with-war-util
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building multimodule-with-war-util 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- license-maven-plugin:1.14:aggregate-add-third-party (default-cli) @ multimodule-with-war-util ---
[WARNING] The goal is skip due to packaging 'jar'
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

while if I use 1.13 it works as expected

 mvn license:aggregate-add-third-party -Pgenerate-third-party -pl multimodule-with-war-util
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building multimodule-with-war-util 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> license-maven-plugin:1.13:aggregate-add-third-party (default-cli) > :add-third-party @ multimodule-with-war-util >>>
[INFO] 
[INFO] --- license-maven-plugin:1.13:add-third-party (add-third-party) @ multimodule-with-war-util ---
[WARNING] No license name defined for org.apache.xbean--xbean-asm5-shaded--3.17
[WARNING] No license name defined for org.apache.xbean--xbean-asm5-shaded--3.17
[WARNING] There is 1 dependencies with no license :
[WARNING]  - stax--stax--1.2.0
[INFO] Writing third-party file to /Users/victor/work/temp/multimodule-with-war/multimodule-with-war-util/target/generated-sources/license/THIRD-PARTY.txt
[INFO] 
[INFO] <<< license-maven-plugin:1.13:aggregate-add-third-party (default-cli) < :add-third-party @ multimodule-with-war-util <<<
[INFO] 
[INFO] 
[INFO] --- license-maven-plugin:1.13:aggregate-add-third-party (default-cli) @ multimodule-with-war-util ---
[WARNING] The goal is skip due to packaging 'jar'

Someone else already posted this issue: https://github.com/mojohaus/license-maven-plugin/issues/93 and I was able to reproduce in my multimodule project.

Any hints?

Thanks

Contributor guide