[ https://jira.codehaus.org/browse/MPMD-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=316444#comment-316444 ]
Ed Bras commented on MPMD-84: ----------------------------- Sorry, not possible, too complex, too big (many maven parents, many projects...etc..), and the client will not allow me... > Without one it is very difficult for us to verify it. Why? My idea: create an eclipse project, copy the above to maven snippet in a maven pom.xml, create the ruleset, create some included and exlcuded pacakges, and test it.. I don't understand your comment... BTW: I get the idea, from googling about this issue that the plugin exclude is the same as ruleset exclude-pattern and is only used in the "root" ruleset. I can't find the exact link anymore, but I read something about that.... In my case the rulsets are all defined in the pom.xml, which is then the "root", and only the contained exclude in ht pom.xml is then used, any other nested excluded like exclude-pattern are simple ignored... In case of ANT, you are can include a ruleset directly in the ant file, which is then the "root" such that the contained exlude-pattern in the ruleset is then used and other nested exclude-pattern's are ignored.. Ofcourse this is very restricted and confusing.. but seems a possible explication. > Maven PMD plugin does not honour exclude-pattern in PMD rulesets > ---------------------------------------------------------------- > > Key: MPMD-84 > URL: https://jira.codehaus.org/browse/MPMD-84 > Project: Maven 2.x PMD Plugin > Issue Type: Bug > Components: PMD > Affects Versions: 2.4 > Reporter: Denis Cabasson > Attachments: mpmd84-20100716.patch > > > According to PMD documentation, exclude-patterns should be independendant on > the program running PMD : > http://pmd.sourceforge.net/howtomakearuleset.html > But Maven scans through all the files, not taking into account the > exclude-patterns and thus including files that shouldn't be. > THose file should be filtered out by the maven plugin -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira