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:[EMAIL PROTECTED] Sent: Thursday, October 02, 2008 9:38 AM To: [email protected] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
