[
https://issues.apache.org/jira/browse/RAT-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14323251#comment-14323251
]
Philipp Ottlinger edited comment on RAT-190 at 2/16/15 8:38 PM:
----------------------------------------------------------------
What mvn goal are you running?
I'm still not able to reproduce the behaviour mentioned in our previous
comments; running your pom yields an error with me:
{code}
$ mvn --version
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4;
2014-08-11T22:58:10+02:00)
Maven home: /home/user/software/maven
Java version: 1.8.0_31, vendor: Oracle Corporation
Java home: /home/user/jdk1.8.0_31/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-46-generic", arch: "amd64", family: "unix"
$ mvn (same result with mvn --U)
[INFO] --- apache-rat-plugin:0.11:check (default) @ test ---
[INFO] 51 implicit excludes (use -debug for more details).
[INFO] Exclude: *.loadrule
[INFO] Exclude: **/.*
[INFO] Exclude: **/.*/*
[INFO] Exclude: **/*.json
[INFO] Exclude: **/*.html
[INFO] Exclude: **/*.md
[INFO] Exclude: **/*.log
[INFO] Exclude: **/*.mf
[INFO] Exclude: src/site/**
[INFO] Exclude: src/scripts/**
[INFO] Exclude: *.obsolete/**
[INFO] Exclude: **/test/**
[INFO] Exclude: sequoia-crx/**
[INFO] Exclude: shimmer-cookie-ninja/**
[INFO] 2 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-Warnungen:
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: 1 unknown: 1 generated: 0
approved: 1 licence.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.542 s
[INFO] Finished at: 2015-02-16T21:35:11+01:00
[INFO] Final Memory: 12M/141M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check
(default) on project test: Too many files with unapproved license: 1 See RAT
report in: /tmp/a/test/target/rat.txt -> [Help 1]
{code}
was (Author: hugo.hirsch):
What mvn goal are you running?
Please add this information - thanks.
> False negatives(?) in apache rat license checking
> -------------------------------------------------
>
> Key: RAT-190
> URL: https://issues.apache.org/jira/browse/RAT-190
> Project: Apache Rat
> Issue Type: Bug
> Affects Versions: 0.8, 0.11
> Reporter: Dan Dumont
> Assignee: Philipp Ottlinger
> Attachments: complete-pom.xml, test.zip
>
>
> We're using rat to enforce our internal copyright on all of our source files.
> We're seeing it missing files that should be flagged. Here's part of our pom:
> <licenses>
> <license
> implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
> <licenseFamilyCategory>IBMCL</licenseFamilyCategory>
> <licenseFamilyName>IBM Copyright</licenseFamilyName>
> <notes></notes>
> <patterns>
> <pattern>Copyright IBM Corp. 2015</pattern>
> <pattern>Copyright IBM Corp. 2014, 2015</pattern>
> <pattern>Copyright IBM Corp. 2013, 2015</pattern>
> </patterns>
> </license>
> </licenses>
> <licenseFamilies>
> <licenseFamily implementation="org.apache.rat.license.SimpleLicenseFamily">
> <familyName>IBM Copyright</familyName>
> </licenseFamily>
> </licenseFamilies>
> The file in question is "included" as reported by running with debug
> output... but the file's copyright is:
> /* Copyright IBM Corp. 2014 All Rights Reserved. */
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)