It turns out that "useDefaultExcludes" actually means exclude using patterns defined in http://plexus.codehaus.org/plexus-utils/apidocs/org/codehaus/plexus/util/AbstractScanner.html#DEFAULTEXCLUDES
and has nothing to do with other 3 switches for excluding maven, eclipse, and idea files. Those 3 others have patterns which do not match maven, eclipse and idea files in nested directories. So when excludeSubProjects is false, maven, eclipse and idea files in submodules get matched. I've fixed it and attached a patch to previously reported related issue: https://issues.apache.org/jira/browse/RAT-107 Please consider voting for the issue. Kind regards, Stevo Slavić. On Wed, Sep 25, 2013 at 10:50 AM, Sean Owen <[email protected]> wrote: > I had basically the same question as default excludes did not seem to cover > as much as I expected. It prints default excludes to the console. At worst > this is just some extra config, no big harm. > On Sep 25, 2013 12:44 AM, "Stevo Slavic (JIRA)" <[email protected]> wrote: > > > > > [ > > > https://issues.apache.org/jira/browse/MAHOUT-1342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13776930#comment-13776930 > ] > > > > Stevo Slavic commented on MAHOUT-1342: > > -------------------------------------- > > > > Patch is applied, thanks [~mpercy] for providing it. > > > > Btw, I'm finding [apache-rat-plugin check-mojo docs| > > http://creadur.apache.org/rat/apache-rat-plugin/check-mojo.html] to be > > confusing. > > For parameter {{excludes}} docs state: > > {quote} > > Specifies files, which are excluded in the report. By default, no files > > are excluded. > > {quote} > > While for parameter {{useDefaultExcludes}} of the same mojo docs state: > > {quote} > > Whether to use the default excludes when scanning for files. The default > > excludes are: > > meta data files for version control systems > > temporary files used by Maven, see useMavenDefaultExcludes > > configuration files for Eclipse, see useEclipseDefaultExcludes > > configuration files for IDEA, see useIdeaDefaultExcludes > > > > Default value is: true. > > User property is: rat.useDefaultExcludes. > > {quote} > > > > If {{useDefaultExcludes}} being true by default was respected, I expect > > that we would not have to configure excludes for svn, maven, eclipse and > > idea files. Also I expect that specifying (additional) {{excludes}} > should > > not be turning off {{useDefaultExcludes}}. > > > > > Exclude .git/**, Eclipse, and .patch files from Rat check > > > --------------------------------------------------------- > > > > > > Key: MAHOUT-1342 > > > URL: https://issues.apache.org/jira/browse/MAHOUT-1342 > > > Project: Mahout > > > Issue Type: Improvement > > > Components: build > > > Reporter: Mike Percy > > > Assignee: Stevo Slavic > > > Priority: Minor > > > Fix For: 0.9 > > > > > > Attachments: MAHOUT-1342.patch > > > > > > > > > Simple patch to exclude the .git directory, along with Eclipse working > > directory files and patch files from the Rat check so that it can be run > in > > a developer environment with those impurities present. > > > > -- > > 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 > > >
