You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Andre Dantas Rocha <an...@uol.com.br> on 2008/10/02 15:38:03 UTC

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

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>


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

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
I think one of those is meant to be used from the command line and forks
the build while the other is meant to be bound. Check the docs.

-----Original Message-----
From: Andre Dantas Rocha [mailto:andre.dantas.rocha@uol.com.br] 
Sent: Thursday, October 02, 2008 9:38 AM
To: users@maven.apache.org
Subject: Has anybody successfully used "check" and "pmd" goals together?

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>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org