Java Mailing List Archive

http://www.java2.5341.com/

Home » Maven Users List »

Has anybody successfully used "check" and "pmd" goals together?

Andre Dantas Rocha

2008-10-02

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi all,



I've been trying for about three days using the 'pmd' and 'check' goals
together. I don't know why, but every time I enable 'check' goal the report
returns "PMD found no problems in your source code".



If I run without 'check' goal I can find a lot of problems in the code. The
configuration is below.



Could anybody help me?



Thanks,



Andre



<build>

 <finalName>${systemName}</finalName>

 <plugins>

   <plugin>

     <groupId>org.apache.maven.plugins</groupId>

     <artifactId>maven-jxr-plugin</artifactId>

     <version>2.1</version>

     <configuration>

       <aggregate>true</aggregate>

     </configuration>      

   </plugin>

   <plugin>

     <groupId>org.apache.maven.plugins</groupId>

     <artifactId>maven-pmd-plugin</artifactId>

     <version>2.4</version>

     <executions>          

       <execution>

          <id>pmd</id>

         <configuration>

           <locales>pt_BR</locales>

           <failOnRuleViolation>false</failOnRuleViolation>

           <failOnError>false</failOnError>

           <targetJdk>${maven.compiler.source}</targetJdk>

           <minimumTokens>100</minimumTokens>

           <rulesets>

             <ruleset>${configDir}/cef-pmd.xml</ruleset>

           </rulesets>              

           <aggregate>true</aggregate>

           <verbose>true</verbose>          

           <failOnViolation>false</failOnViolation>

           <failurePriority>5</failurePriority>

         </configuration>

         <phase>compile</phase>

         <goals>

           <goal>pmd</goal>

           <goal>cpd</goal>

           <goal>check</goal>

           <goal>cpd-check</goal>              

         </goals>

       </execution>      

     </executions>

   </plugin>

 </plugins>

</build>

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.