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>

Reply via email to