[ https://jira.codehaus.org/browse/MPMD-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Derek Lewis updated MPMD-132: ----------------------------- Attachment: maven-pmd-plugin-bug-2.zip Attaching a new example > Cannot configure multiple executions (ie. cpd, pmd) independantly > ----------------------------------------------------------------- > > Key: MPMD-132 > URL: https://jira.codehaus.org/browse/MPMD-132 > Project: Maven 2.x PMD Plugin > Issue Type: Bug > Components: CPD, PMD > Affects Versions: 2.5 > Reporter: Derek Lewis > Attachments: maven-pmd-plugin-bug-2.zip, maven-pmd-plugin-bug.zip > > > When trying to configure cpd and pmd differently (ie. includeTests for PMD, > but not for CPD), the plugin does not honour configuration within the > execution. > For example, if a ruleset file is specified in <configuration> within the > <execution>, it is ignored, and the default ruleset is applied. > In the testcase: > $ mvn install > ^ This fails with a PMD error, because the ruleset is ignored due to the > <configuration> being within the <execution> > $ mvn install -Pwith-pmd-that-works > ^ This passes, because it is a profile where the <configuration> is within > <plugin>, not <execution> -- 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