[jira] [Commented] (RAT-158) SAXParser warnings
[ https://issues.apache.org/jira/browse/RAT-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14254572#comment-14254572 ] Bernd Eckenfels commented on RAT-158: - I see the same problem with commons VFS site builds (using RAT) with recent Java 7 and 8. I wonder, why is external used/needed here anyway? > SAXParser warnings > -- > > Key: RAT-158 > URL: https://issues.apache.org/jira/browse/RAT-158 > Project: Apache Rat > Issue Type: Bug >Affects Versions: 0.10 > Environment: Apache Maven 3.0.4 > Maven home: /usr/share/maven > Java version: 1.6.0_30, vendor: Sun Microsystems Inc. > Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "3.11.0-17-generic", arch: "amd64", family: "unix" >Reporter: John Vines >Priority: Minor > > I have rat configured as such > {code} > org.apache.rat > apache-rat-plugin > false > > > verify > >check > > > > > > **/conf/** > > > > {code} > And with every build where it triggers, I see > {code} > Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property > 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' 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://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not > recognized. > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (RAT-126) Default excludes do not ignore .git/ repository
[ https://issues.apache.org/jira/browse/RAT-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13587618#comment-13587618 ] Bernd Eckenfels commented on RAT-126: - The fix looks good, it (suddenly?) also ignores the .git directory. BTW: I wonder if it is better to list only ignored resources instead of the exclude patterns. Especially for the number printed this is much more interesting. > Default excludes do not ignore .git/ repository > --- > > Key: RAT-126 > URL: https://issues.apache.org/jira/browse/RAT-126 > Project: Apache Rat > Issue Type: Bug > Components: maven >Affects Versions: 0.8 > Environment: Windows 7, Maven 3.0.4, Oracle JDK 1.7.0_11, Eclipse >Reporter: Bernd Eckenfels >Priority: Minor > > When running the RAT 0.8 maven plugin from command line (no POM entry for the > plugin) in a Eclipse+Maven project which is checked out from .git/ the plugin > will not by default exclude the repository dotdir. > C:\ws\proj>\ws\apache-maven-3.0.4\bin\mvn -s ..\empty.xml > org.apache.rat:apache-rat-plugin:check > ... > [INFO] --- apache-rat-plugin:0.8:check (default-cli) @ et-otp --- > [INFO] No excludes > ... > The excludes should eighter be contained in the eclipse defaults or have its > own dotfile or scm category. A workaround would be to specify the excludes, > unfortunatelly there seems to be no expression associated with the exclude > property of the mojo. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (RAT-126) Default excludes do not ignore .git/ repository
[ https://issues.apache.org/jira/browse/RAT-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13582814#comment-13582814 ] Bernd Eckenfels commented on RAT-126: - Hello, I just noticed that according to the Source and Comments the defaultExcludes should already contain .git. And the defaultExcludes are also turned on bye default. At least this is what the -X debug run of Maven tells me. But still it says "No Excludes". So I am a bit confused. Maybe it was fixed since 0.8 (there are some changes but no obvious fix). Can anybody confirm that the excludes feature is excluding any default directorries? [DEBUG] Configuring mojo 'org.apache.rat:apache-rat-plugin:0.8:check' with basic configurator --> [DEBUG] (f) addDefaultLicenseMatchers = true [DEBUG] (f) addLicenseHeaders = false [DEBUG] (f) basedir = C:\ws\github\proj [DEBUG] (f) excludeSubProjects = true [DEBUG] (f) numUnapprovedLicenses = 0 [DEBUG] (f) reportFile = C:\ws\github\proj\target\rat.txt [DEBUG] (f) reportStyle = plain [DEBUG] (f) useDefaultExcludes = true # should match .git [DEBUG] (f) useEclipseDefaultExcludes = true # should match .project [DEBUG] (f) useIdeaDefaultExcludes = true [DEBUG] (f) useMavenDefaultExcludes = true [DEBUG] -- end configuration -- [INFO] No excludes The default list in plexus DirectoryScanner includes: "**/*~", "**/#*#", "**/.#*", "**/%*%", "**/._*", // CVS "**/CVS", "**/CVS/**", "**/.cvsignore", // RCS "**/RCS", "**/RCS/**", // SCCS "**/SCCS", "**/SCCS/**", // Visual SourceSafe "**/vssver.scc", // MKS "**/project.pj", // Subversion "**/.svn", "**/.svn/**", // Arch "**/.arch-ids", "**/.arch-ids/**", //Bazaar "**/.bzr", "**/.bzr/**", //SurroundSCM "**/.MySCMServerInfo", // Mac "**/.DS_Store", // Serena Dimensions Version 10 "**/.metadata", "**/.metadata/**", // Mercurial "**/.hg", "**/.hg/**", // git "**/.git", "**/.gitignore", "**/.gitattributes", "**/.git/**", // BitKeeper "**/BitKeeper", "**/BitKeeper/**", "**/ChangeSet", "**/ChangeSet/**", // darcs "**/_darcs", "**/_darcs/**", "**/.darcsrepo", "**/.darcsrepo/**", "**/-darcs-backup*", "**/.darcs-temp-mail" }; Any idea? > Default excludes do not ignore .git/ repository > --- > > Key: RAT-126 > URL: https://issues.apache.org/jira/browse/RAT-126 > Project: Apache Rat > Issue Type: Bug > Components: maven >Affects Versions: 0.8 > Environment: Windows 7, Maven 3.0.4, Oracle JDK 1.7.0_11, Eclipse >Reporter: Bernd Eckenfels >Priority: Minor > > When running the RAT 0.8 maven plugin from command line (no POM entry for the > plugin) in a Eclipse+Maven project which is checked out from .git/ the plugin > will not by default exclude the repository dotdir. > C:\ws\proj>\ws\apache-maven-3.0.4\bin\mvn -s ..\empty.xml > org.apache.rat:apache-rat-plugin:check > ... > [INFO] --- apache-rat-plugin:0.8:check (default-cli) @ et-otp --- > [INFO] No excludes > ... > The excludes should eighter be contained in the eclipse defaults or have its > own dotfile or scm category. A workaround would be to specify the excludes, > unfortunatelly there seems to be no expression associated with the exclude > property of the mojo. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (RAT-127) Print report file location in error message
[ https://issues.apache.org/jira/browse/RAT-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bernd Eckenfels updated RAT-127: Description: When running the RAT 0.8 maven plugin from command line (no POM entry for the plugin) it will print a short error message how many violations it found, but this message could be enhanced by pointing to the report file: C:\ws\proj>\ws\apache-maven-3.0.4\bin\mvn -s ..\empty.xml org.apache.rat:apache-rat-plugin:check ... [INFO] --- apache-rat-plugin:0.8:check (default-cli) @ proj --- ... [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check (default-cli) on project proj: Too many unapproved licenses: 26 -> [Help 1] Better: [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check (default-cli) on project proj: Too many unapproved licenses: 26. See target/rat.txt was: When running the RAT 0.8 maven plugin from command line (no POM entry for the plugin) it will print a short error message how many violations it found, but this message could be enhanced by pointing to the report file: C:\ws\proj>\ws\apache-maven-3.0.4\bin\mvn -s ..\empty.xml org.apache.rat:apache-rat-plugin:check ... [INFO] --- apache-rat-plugin:0.8:check (default-cli) @ proj --- ... [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check (default-cli) on project proj: Too many unapproved licenses: 26 -> [Help 1] Better: [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check (default-cli) on project proj: Too many unapproved licenses: 26. See target/rat.txt The excludes should eighter be contained in the eclipse defaults or have its own dotfile or scm category. A workaround would be to specify the excludes, unfortunatelly there seems to be no expression associated with the exclude property of the mojo. > Print report file location in error message > --- > > Key: RAT-127 > URL: https://issues.apache.org/jira/browse/RAT-127 > Project: Apache Rat > Issue Type: Wish > Components: maven >Affects Versions: 0.8 > Environment: Windows 7, Maven 3.0.4, Oracle JDK 1.7.0_11, Eclipse >Reporter: Bernd Eckenfels >Priority: Minor > Labels: maven, ux > Attachments: rat127.patch > > > When running the RAT 0.8 maven plugin from command line (no POM entry for the > plugin) it will print a short error message how many violations it found, but > this message could be enhanced by pointing to the report file: > C:\ws\proj>\ws\apache-maven-3.0.4\bin\mvn -s ..\empty.xml > org.apache.rat:apache-rat-plugin:check > ... > [INFO] --- apache-rat-plugin:0.8:check (default-cli) @ proj --- > ... > [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check > (default-cli) on project proj: Too many unapproved licenses: 26 -> [Help 1] > Better: > [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check > (default-cli) on project proj: Too many unapproved licenses: 26. See > target/rat.txt -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (RAT-127) Print report file location in error message
[ https://issues.apache.org/jira/browse/RAT-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bernd Eckenfels updated RAT-127: Attachment: rat127.patch Took me some time to get that damned SVN work with my Windows (I am not sure if the "native" eol setting in the repository is so good.) Anyway, here is the patch with a new test case and enhanced warning+exception message. It also adds a info() logging line with basic statistics for check goal. I hereby agree that you use this changed code under any license you may like. > Print report file location in error message > --- > > Key: RAT-127 > URL: https://issues.apache.org/jira/browse/RAT-127 > Project: Apache Rat > Issue Type: Wish > Components: maven >Affects Versions: 0.8 > Environment: Windows 7, Maven 3.0.4, Oracle JDK 1.7.0_11, Eclipse >Reporter: Bernd Eckenfels >Priority: Minor > Labels: maven, ux > Attachments: rat127.patch > > > When running the RAT 0.8 maven plugin from command line (no POM entry for the > plugin) it will print a short error message how many violations it found, but > this message could be enhanced by pointing to the report file: > C:\ws\proj>\ws\apache-maven-3.0.4\bin\mvn -s ..\empty.xml > org.apache.rat:apache-rat-plugin:check > ... > [INFO] --- apache-rat-plugin:0.8:check (default-cli) @ proj --- > ... > [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check > (default-cli) on project proj: Too many unapproved licenses: 26 -> [Help 1] > Better: > [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check > (default-cli) on project proj: Too many unapproved licenses: 26. See > target/rat.txt > The excludes should eighter be contained in the eclipse defaults or have its > own dotfile or scm category. A workaround would be to specify the excludes, > unfortunatelly there seems to be no expression associated with the exclude > property of the mojo. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (RAT-127) Print report file location in error message
Bernd Eckenfels created RAT-127: --- Summary: Print report file location in error message Key: RAT-127 URL: https://issues.apache.org/jira/browse/RAT-127 Project: Apache Rat Issue Type: Wish Components: maven Affects Versions: 0.8 Environment: Windows 7, Maven 3.0.4, Oracle JDK 1.7.0_11, Eclipse Reporter: Bernd Eckenfels Priority: Minor When running the RAT 0.8 maven plugin from command line (no POM entry for the plugin) it will print a short error message how many violations it found, but this message could be enhanced by pointing to the report file: C:\ws\proj>\ws\apache-maven-3.0.4\bin\mvn -s ..\empty.xml org.apache.rat:apache-rat-plugin:check ... [INFO] --- apache-rat-plugin:0.8:check (default-cli) @ proj --- ... [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check (default-cli) on project proj: Too many unapproved licenses: 26 -> [Help 1] Better: [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check (default-cli) on project proj: Too many unapproved licenses: 26. See target/rat.txt The excludes should eighter be contained in the eclipse defaults or have its own dotfile or scm category. A workaround would be to specify the excludes, unfortunatelly there seems to be no expression associated with the exclude property of the mojo. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (RAT-126) Default excludes do not ignore .git/ repository
Bernd Eckenfels created RAT-126: --- Summary: Default excludes do not ignore .git/ repository Key: RAT-126 URL: https://issues.apache.org/jira/browse/RAT-126 Project: Apache Rat Issue Type: Bug Components: maven Affects Versions: 0.8 Environment: Windows 7, Maven 3.0.4, Oracle JDK 1.7.0_11, Eclipse Reporter: Bernd Eckenfels Priority: Minor When running the RAT 0.8 maven plugin from command line (no POM entry for the plugin) in a Eclipse+Maven project which is checked out from .git/ the plugin will not by default exclude the repository dotdir. C:\ws\proj>\ws\apache-maven-3.0.4\bin\mvn -s ..\empty.xml org.apache.rat:apache-rat-plugin:check ... [INFO] --- apache-rat-plugin:0.8:check (default-cli) @ et-otp --- [INFO] No excludes ... The excludes should eighter be contained in the eclipse defaults or have its own dotfile or scm category. A workaround would be to specify the excludes, unfortunatelly there seems to be no expression associated with the exclude property of the mojo. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira