Hi,

I've been testing the Apache Tika build with the rat plugin 17 snapshot. I had to add subprojects to the exclusion list in many subprojects (that have their own subprojects). Hours later doing this I noticed that there is an "excludeSubprojects" option. The main trunk pom.xml now looks like this:

      <plugin>
        <groupId>org.apache.rat</groupId>
        <artifactId>apache-rat-plugin</artifactId>
        <version>${rat.version}</version>
        <configuration>
<excludeSubProjects>true</excludeSubProjects> <!-- this line isn't committed -->
          <excludes>
            <exclude>CHANGES.txt</exclude>
            <exclude>README.md</exclude>
            <!-- remove this once we figure out the bundle packaging -->
<exclude>tika-bundle/src/main/resources/META-INF/MANIFEST.MF</exclude>
            <exclude>.gitattributes</exclude>
          </excludes>
        </configuration>
      </plugin>

and the I output is below. This didn't happen with 0.16. How can I get the old behavior?

Tilman

------------------------< org.apache.tika:tika >------------------------
Building Apache Tika 4.0.0-SNAPSHOT [109/109]
  from pom.xml
--------------------------------[ pom ]---------------------------------

--- apache-rat:0.17-SNAPSHOT:check (default-cli) @ tika ---
 Parameter 'excludes' is deprecated: Deprecated for removal since 0.17: Use <inputExclude> instead.
Basedir is : XXXX\tika-main
Use of deprecated option 'exclude'. Deprecated for removal since 0.17: Use <inputExclude> instead. Excluding patterns: CHANGES.txt, README.md, tika-bundle/src/main/resources/META-INF/MANIFEST.MF, .gitattributes
Excluding MAVEN collection.
Excluding ECLIPSE collection.
Excluding IDEA collection.
Processing exclude file from STANDARD_SCMS.
Excluding STANDARD_SCMS collection.
Excluding MISC collection.
Excluding HIDDEN_DIR collection.
Unsupported character set 'IBM424_rtl' in file '\tika-parsers\tika-parsers-standard\tika-parsers-standard-modules\tika-parser-text-module\src\test\resources\test-documents\testIgnoreCharset.txt'. Will use system default encoding.
RAT summary:

  Approved:  2198

  Archives:  68

  Binaries:  862

  Document types:  5

  Ignored:  155

  License categories:  2

  License names:  2

  Notices:  8

  Standards:  2436

  Unapproved:  238

  Unknown:  238
Unexpected count for UNAPPROVED, limit is [0,0].  Count: 238
UNAPPROVED (Unapproved) is a count of unapproved licenses.
*****************************************************
Generated at: 2025-10-06T14:45:11+02:00

Files with unapproved licenses:
  /tika-app/src/test/resources/test-data/bad_xml.xml
  /tika-app/src/test/resources/test-data/testJsonMultipleInts.html
  /tika-app/src/test/resources/test-data/testPDFPackage.pdf
/tika-app/src/test/resources/test-data/testPDF_childAttachments.pdf
/tika-app/src/test/resources/test-data/testPDF_incrementalUpdates.pdf
  /tika-app/src/test/resources/test-data/tika-config1.xml
  /tika-app/src/test/resources/test-data/tika-config2.xml
/tika-core/src/main/resources/org/apache/tika/detect/tika-example.nnmodel
/tika-core/src/test/resources/org/apache/tika/detect/tika-example.nnmodel
  /tika-core/src/test/resources/org/apache/tika/io/test.txt
/tika-core/src/test/resources/org/apache/tika/mime/circles-with-prefix.svg
  /tika-core/src/test/resources/org/apache/tika/mime/circles.svg
(...)
/tika-server/tika-server-standard/src/test/resources/test-documents/testPassword4Spaces.pdf
/tika-server/tika-server-standard/src/test/resources/test-documents/testUnicodePassword.pdf
------------------------------------------------------------------------
Reactor Summary for Apache Tika 4.0.0-SNAPSHOT:

Apache Tika parent ................................. SUCCESS [ 3.529 s]
(...)
Apache Tika Java-7 Components ...................... SUCCESS [ 0.491 s]
Apache Tika ........................................ FAILURE [02:42 min]
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time:  07:23 min
Finished at: 2025-10-06T14:47:15+02:00
------------------------------------------------------------------------
Failed to execute goal org.apache.rat:apache-rat-plugin:0.17-SNAPSHOT:check (default-cli) on project tika: Counter(s) UNAPPROVED exceeded minimum or maximum values. See RAT report in: 'XXX\tika-main\target\rat.txt'. -> [Help 1]


Reply via email to