Hi guys, thank you for your work. It is very helpful to have the RAT Maven plugin to check the sources.
Today I stumbled over an anomaly. Our nightly build went fine on Ubuntu: https://builds.apache.org/job/ODFToolkit/28/org.apache.odftoolkit$schema2template/console [INFO] Building jar: /home/jenkins/jenkins-slave/workspace/ODFToolkit/trunk/generator/schema2template/target/schema2template-0.8.9-incubating-SNAPSHOT-javadoc.jar [INFO] [INFO] *--- apache-rat-plugin:0.7:check (default) @ schema2template --- *[INFO] Exclude: src/test/resources/examples/odf/*.ref [PMD] No report found for mojo check On Windows 7 on the same source revision I got a problem with RAT and a binary document, which have to explicitly exclude to let the test pass: [INFO] --- apache-rat-plugin:0.7:check (default) @ schema2template --- [INFO] Exclude: src/test/resources/examples/odf/*.ref [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache ODF Toolkit ................................ SUCCESS [2:12.294s] [INFO] ODF Custom Javadoc Taglets ........................ SUCCESS [1:32.394s] [INFO] XML Schema to Template Mapping Tool: Parent POM ... SUCCESS [0.202s] [INFO] XML Schema to Template Mapping Tool: Library ...... FAILURE [1:49.980s] [INFO] XML Schema to Template Mapping Tool: Maven2 Plugin SKIPPED [INFO] ODFDOM ............................................ SKIPPED [INFO] ODF XSLT-Runner ................................... SKIPPED [INFO] ODF XSLT-Runner Ant Task .......................... SKIPPED [INFO] ODF Validator ..................................... SKIPPED [INFO] Simple Java API for ODF (Simple ODF) .............. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5:35.528s [INFO] Finished at: Thu Mar 01 11:44:17 CET 2012 [INFO] Final Memory: 37M/334M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.7:check (default) on project schema2template: Too many unapproved licenses: 1 -> [Help 1] * First how can the nightly build pass and the local build fail? Did we used different rat-plugins? How can we remove this uncertainty? To do a test on your own, just check out "svn co -r 1294009 https://svn.apache.org/repos/asf/incubator/odf/trunk" and run "mvn clean install -Ppedantic" * Second of all would be possible to list the files that did not pass? It is not obvious from the output, Help 1 the URL that there is a target/rat.txt. * Third, perhaps a Maven problem, but if I run a "mvn rat:check" for our trunk from command line. Perhaps the exclusion is only for the ID pedantic? How do you solve this problem in your projects? Thanks in advance, Svante