Hello Wayne,

Following is an extract of the pom.xml that I tried:

<plugins>
   <plugin>
        <artifactId>maven-pmd-plugin</artifactId>
        <version>2.5</version>
        <dependencies>
                <dependency>
                        <groupId>com.churchmutual</groupId>
                        <artifactId>pmd-ruleset</artifactId>
                        <version>0.0.2</version>
                </dependency>
        </dependencies>
   </plugin>
</plugins>

<reporting>
                <plugins>
                        <plugin>
                                        
<artifactId>maven-pmd-plugin</artifactId>
                                        <version>2.5</version>
                                        <reportSets>
                                                <reportSet>
                                                        <reports>
                                                                <report>
                                                                        pmd
                                                                </report>
                                                        </reports>
                                                        <configuration>
                                                                
<goal>check</goal>
                                                                
<skip>false</skip>
                                                                
<targetJdk>${compile.source}</targetJdk>
                                                                <rulesets>
                                                                
<ruleset>/com/churchmutual/ocns/shared/pmdruleset/ocns.pmd.rules.xml</ruleset>
                                                                </rulesets>
                                                                
<includeTests>true</includeTests>
                                                                
<linkXref>true</linkXref>
                                                                
<failOnViolation>true</failOnViolation>
                                                        </configuration>
                                                </reportSet>
                                                <reportSet>
                                                        <reports>
                                                                <report>
                                                                        cpd
                                                                </report>
                                                        
                                                        </reports>
                                                        <configuration>
                                                                
<goal>cpd-check</goal>
                                                                
<skip>false</skip>
                                                                
<targetJdk>${compile.source}</targetJdk>
                                                                
<includeTests>true</includeTests>
                                                                
                                                                
<linkXref>true</linkXref>
                                                                
<failOnViolation>true</failOnViolation>
                                                        </configuration>
                                                </reportSet>
                                        </reportSets>
                                </plugin>
                </plugins>
        </reporting>


But, it neither runs PMD nor cpd.

--
View this message in context: 
http://maven.40175.n5.nabble.com/Disable-CPD-and-Enable-PMD-check-for-teh-same-set-of-classes-tp4891455p4901668.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to