dash-licenses icon indicating copy to clipboard operation
dash-licenses copied to clipboard

license-check goal should log warn/error if review is needed.

Open sbernard31 opened this issue 4 years ago • 1 comments

Use WARNING level for log when review is needed.

[INFO] --- license-tool-plugin:0.0.1-SNAPSHOT:license-check (default-cli) @ leshan ---
[INFO] Querying Eclipse Foundation for license data for 21 items.
[INFO] Found 14 items.
[INFO] Querying ClearlyDefined for license data for 7 items.
[INFO] Found 7 items.
[WARNING] License information could not be automatically verified for the following content:
[WARNING] 
[WARNING] maven/mavencentral/gnu-regexp/gnu-regexp/1.1.4
[WARNING] 
[WARNING] This content is either not correctly mapped by the system, or requires review.
[WARNING] 
[WARNING] 
[INFO] Summary file was written to: /home/sbernard/git/leshan/target/dash/summary
[INFO] ------------------------------------------------------------------------

Use ERROR level for log when review is needed and failWhenReviewNeeded=true

[INFO] --- license-tool-plugin:0.0.1-SNAPSHOT:license-check (default-cli) @ leshan ---
[INFO] Querying Eclipse Foundation for license data for 21 items.
[INFO] Found 14 items.
[INFO] Querying ClearlyDefined for license data for 7 items.
[INFO] Found 7 items.
[ERROR] License information could not be automatically verified for the following content:
[ERROR] 
[ERROR] maven/mavencentral/gnu-regexp/gnu-regexp/1.1.4
[ERROR] 
[ERROR] This content is either not correctly mapped by the system, or requires review.
[ERROR] 
[ERROR] 
[INFO] Summary file was written to: /home/sbernard/git/leshan/target/dash/summary
[ERROR] Dependency license check failed. Some dependencies need to be vetted.
[INFO] ------------------------------------------------------------------------

else use INFO level for log :

[INFO] --- license-tool-plugin:0.0.1-SNAPSHOT:license-check (default-cli) @ leshan ---
[INFO] Querying Eclipse Foundation for license data for 42 items.
[INFO] Found 36 items.
[INFO] Querying ClearlyDefined for license data for 6 items.
[INFO] Found 6 items.
[INFO] Vetted license information was found for all content. No further investigation is required.
[INFO] Summary file was written to: /home/sbernard/git/leshan/target/dash/summary
[INFO] ------------------------------------------------------------------------

sbernard31 avatar Oct 12 '21 13:10 sbernard31

Good idea.

waynebeaton avatar Oct 27 '21 11:10 waynebeaton