Skip to content

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

Open
sbernard31 wants to merge 1 commit into
eclipse-dash:masterfrom
sbernard31:warn
Open

license-check goal should log warn/error if review is needed.#113
sbernard31 wants to merge 1 commit into
eclipse-dash:masterfrom
sbernard31:warn

Conversation

@sbernard31
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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