Uploaded image for project: 'Apache Rat'
  1. Apache Rat
  2. RAT-248

Maven output duplicates exclusion list with consoleOutput=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.12
    • None
    • maven
    • None

    Description

      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.

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

      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 dennisl@apache.org

      Attachments

        Activity

          People

            Unassigned Unassigned
            adoroszlai Attila Doroszlai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: