Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sbernard31
Copy link
Contributor

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] ------------------------------------------------------------------------

@waynebeaton
Copy link
Collaborator

Good idea.

@sbernard31 sbernard31 changed the title license-check goal should log warn/error is review is needed. license-check goal should log warn/error if review is needed. Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants