[ https://issues.apache.org/jira/browse/RAT-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17881260#comment-17881260 ]
Attila Doroszlai edited comment on RAT-248 at 9/12/24 10:23 AM: ---------------------------------------------------------------- Reproducible with versions up to 0.15, but not with 0.16. Output is much less verbose now (RAT-317). BTW {{consoleOutput}} seems to default to true starting with 0.14 (RAT-270). I guess the underlying problem may still exist, but now it's only output at debug level. was (Author: adoroszlai): Reproducible with versions up to 0.15, but not with 0.16. Output is much less verbose now. BTW {{consoleOutput}} seems to default to true starting with 0.14. > Maven output duplicates exclusion list with consoleOutput=true > -------------------------------------------------------------- > > Key: RAT-248 > URL: https://issues.apache.org/jira/browse/RAT-248 > Project: Apache Rat > Issue Type: Bug > Components: Client - maven > Affects Versions: 0.12 > Reporter: Attila Doroszlai > Priority: Major > Fix For: 0.16 > > > RAT-61 added the {{consoleOutput}} parameter for the Maven plugin to list > files with unapproved licenses in Maven output. The problem is that the > messages related to exclusions are repeated with {{consoleOutput=true}} if > there are any offending files. > {noformat:title=mvn -pl ambari-agent -Drat.consoleOutput=true > apache-rat:check # 0.12} > [INFO] --- apache-rat-plugin:0.12:check (default-cli) @ ambari-agent --- > [INFO] Enabled default license matchers. > [INFO] Will parse SCM ignores for exclusions... > [INFO] Finished adding exclusions from SCM ignore files. > [INFO] 61 implicit excludes (use -debug for more details). > [INFO] Exclude: conf/unix/logging.conf.sample > [INFO] Exclude: conf/windows/logging.conf.sample > [INFO] Exclude: src/test/python/tmp_hostcheck.result > [INFO] Exclude: src/examples/* > [INFO] Exclude: src/test/python/dummy*.txt > [INFO] Exclude: src/test/python/ambari_agent/dummy_files/* > [INFO] Exclude: src/test/python/ambari_agent/dummy*.txt > [INFO] Exclude: src/main/python/ambari_agent/imports.txt > [INFO] Exclude: src/main/python/ambari_agent/apscheduler/** > [INFO] Exclude: **/*.erb > [INFO] Exclude: **/*.json > [INFO] Exclude: **/*.pydevproject > [INFO] Exclude: src/main/package/choco/ambari-agent.nuspec > [INFO] Exclude: **/dependency-reduced-pom.xml > [INFO] 178 resources included (use -debug for more details) > [INFO] Rat check: Summary over all files. Unapproved: 1, unknown: 1, > generated: 0, approved: 177 licenses. > [INFO] Enabled default license matchers. > [INFO] Will parse SCM ignores for exclusions... > [INFO] Finished adding exclusions from SCM ignore files. > [INFO] 61 implicit excludes (use -debug for more details). > [INFO] Exclude: conf/unix/logging.conf.sample > [INFO] Exclude: conf/windows/logging.conf.sample > [INFO] Exclude: src/test/python/tmp_hostcheck.result > [INFO] Exclude: src/examples/* > [INFO] Exclude: src/test/python/dummy*.txt > [INFO] Exclude: src/test/python/ambari_agent/dummy_files/* > [INFO] Exclude: src/test/python/ambari_agent/dummy*.txt > [INFO] Exclude: src/main/python/ambari_agent/imports.txt > [INFO] Exclude: src/main/python/ambari_agent/apscheduler/** > [INFO] Exclude: **/*.erb > [INFO] Exclude: **/*.json > [INFO] Exclude: **/*.pydevproject > [INFO] Exclude: src/main/package/choco/ambari-agent.nuspec > [INFO] Exclude: **/dependency-reduced-pom.xml > [INFO] 178 resources included (use -debug for more details) > [WARNING] Files with unapproved licenses: > ambari-agent/src/main/python/setup.py > {noformat} > {noformat:title=mvn -pl ambari-agent -Drat.consoleOutput=true > apache-rat:check # 0.13-SNAPSHOT} > [INFO] --- apache-rat-plugin:0.13-SNAPSHOT:check (default-cli) @ ambari-agent > --- > [INFO] Enabled default license matchers. > [INFO] Will parse SCM ignores for exclusions... > [INFO] Finished adding exclusions from SCM ignore files. > [INFO] 62 implicit excludes (use -debug for more details). > [INFO] 14 explicit excludes (use -debug for more details). > [INFO] 178 resources included (use -debug for more details) > [INFO] Rat check: Summary over all files. Unapproved: 1, unknown: 1, > generated: 0, approved: 177 licenses. > [INFO] Enabled default license matchers. > [INFO] Will parse SCM ignores for exclusions... > [INFO] Finished adding exclusions from SCM ignore files. > [INFO] 62 implicit excludes (use -debug for more details). > [INFO] 14 explicit excludes (use -debug for more details). > [INFO] 178 resources included (use -debug for more details) > [WARNING] Files with unapproved licenses: > ambari-agent/src/main/python/setup.py > {noformat} > With both versions the lines between {{Enabled default license matchers}} and > {{178 resources included}} are duplicated. I would like to be able to avoid > the duplication, if possible. Thanks. > CC [~denn...@apache.org] -- This message was sent by Atlassian Jira (v8.20.10#820010)