The rat report shows files that do not have a proper license header. At the end of the build, you should see a message like the following:
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project apache-vxquery-benchmark: Too many files with unapproved license: 1 See RAT report in: /Documents/workspace-apache/vxquery/vxquery-benchmark/target/rat.txt -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :apache-vxquery-benchmark If you look at the "See RAT report in: /Documents/workspace-apache/vxquery/vxquery-benchmark/target/rat.txt" file. It will show you a list of files that do not have the proper license header. On Thu, Jun 23, 2016 at 3:35 PM, Menaka Madushanka <[email protected]> wrote: > Sorry, what I meant by maven install was 'maven clean install'. > > I commented out the following plugin entries from parent pom and then it > worked. > > <plugin> > <groupId>org.apache.rat</groupId> > <artifactId>apache-rat-plugin</artifactId> > <version>0.11</version> > <executions> > <execution> > <phase>verify</phase> > <goals> > <goal>check</goal> > </goals> > </execution> > </executions> > <configuration> > <excludes> > <exclude>.gitignore</exclude> > <exclude>.rat-excludes</exclude> > <exclude>.project</exclude> > <exclude>.classpath</exclude> > <exclude>.basex</exclude> > <exclude>**/ExpectedTestResults/**</exclude> > <exclude>**/xqts.txt</exclude> > <exclude>test-suite*/**/*</exclude> > </excludes> > </configuration> > </plugin> > > <plugin> > <groupId>org.apache.rat</groupId> > <artifactId>apache-rat-plugin</artifactId> > <version>${apache-rat-plugin.version}</version> > <configuration> > <excludes> > <exclude>.gitignore</exclude> > <exclude>.git/**/*</exclude> > </excludes> > <numUnapprovedLicenses>0</numUnapprovedLicenses> > <maxmemory>2g</maxmemory> > </configuration> > </plugin> > > On 24 June 2016 at 03:43, Steven Jacobs <[email protected]> wrote: > >> Have you tried "mvn clean install?" >> Steven >> >> On Thursday, June 23, 2016, Menaka Madushanka <[email protected]> >> wrote: >> >> > Hello, >> > >> > When I try to run a maven install, it produces following warning and >> fails >> > the build. >> > >> > -- apache-rat-plugin:0.11:check (default) @ apache-vxquery --- >> > [INFO] 56 implicit excludes (use -debug for more details). >> > [INFO] Exclude: .gitignore >> > [INFO] Exclude: .rat-excludes >> > [INFO] Exclude: .project >> > [INFO] Exclude: .classpath >> > [INFO] Exclude: .basex >> > [INFO] Exclude: **/ExpectedTestResults/** >> > [INFO] Exclude: **/xqts.txt >> > [INFO] Exclude: test-suite*/**/* >> > [INFO] 207 resources included (use -debug for more details) >> > Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property ' >> > http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not >> > recognized. >> > Compiler warnings: >> > WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property ' >> > http://javax.xml.XMLConstants/property/accessExternalDTD' is not >> > recognized.' >> > Warning: org.apache.xerces.parsers.SAXParser: Feature ' >> > http://javax.xml.XMLConstants/feature/secure-processing' is not >> > recognized. >> > Warning: org.apache.xerces.parsers.SAXParser: Property ' >> > http://javax.xml.XMLConstants/property/accessExternalDTD' is not >> > recognized. >> > Warning: org.apache.xerces.parsers.SAXParser: Property ' >> > http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not >> > recognized. >> > [INFO] Rat check: Summary of files. Unapproved: 175 unknown: 175 >> generated: >> > 0 approved: 22 licence. >> > >> > [INFO] VXQuery ........................................... FAILURE [ >> 13.525 >> > s] >> > [INFO] VXQuery Core ...................................... SKIPPED >> > [INFO] VXQuery Server .................................... SKIPPED >> > [INFO] VXQuery CLI ....................................... SKIPPED >> > [INFO] VXQuery XTest ..................................... SKIPPED >> > [INFO] VXQuery Benchmark ................................. SKIPPED >> > >> > What is the reason for this? >> > >> > Menaka >> > >> > -- >> > *Menaka Madushanka Jayawardena* >> > Faculty of Engineering, <http://www.pdn.ac.lk/eng> >> > University of Peradeniyaya. >> > LinkedIn <http://lk.linkedin.com/in/menakajayawardena> >> > TP:- 071 885 1183/ 071 350 5470 >> > >> > > > > -- > *Menaka Madushanka Jayawardena* > Faculty of Engineering, <http://www.pdn.ac.lk/eng> > University of Peradeniyaya. > LinkedIn <http://lk.linkedin.com/in/menakajayawardena> > TP:- 071 885 1183/ 071 350 5470
