Hi
Can I think that "<artifactId>pmd-jdk14</artifactId>" is to config the
JDK's version? if yes, Unfortunately, there is no any info in the pmd report
with JDK1.4. It doesn't work cos Jdk1.6 is useful to run my project, so I
defined the JDK as shown .
...
<configuration>
<targetJdk>${compileSource}</targetJdk>
<configuration>
...
------------------------------------
...
<compileSource>1.6</compileSource>
...
I had got error info with it in PMD report (mvn site), but only three. I had
got a lot via plugin in Eclipse. that's why I inqured the difference.
I scrutinized the *Using Rule Sets.* and learned that PMD plugin uses three
default rule sets in Maven. wanna use other rule sets to configure it in the
plugin as shown
...
<ruleset>d:\your folder\design.xml</ruleset>
...
As for it, I am not sure if i am right. Anyway, More info I gained in PMD
report, More ruleset I added in POM.xml.
Maybe someone can make a detailed descripation of it. thanks
Cheer
Jaina,
On Fri, Feb 25, 2011 at 10:19 AM, Wayne Fay <[email protected]> wrote:
> > Am I correct based on the above version No. which look like different? if
> > not, could you pls tell me how to rectify? thanks!
>
>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-pmd-plugin/2.5/maven-pmd-plugin-2.5.pom
> tells us that m-pmd-p version 2.5 uses
> <dependency>
> <groupId>pmd</groupId>
> <artifactId>pmd-jdk14</artifactId>
> <version>4.2.5</version>
> </dependency>
>
> and
>
> http://repo1.maven.org/maven2/org/codehaus/mojo/findbugs-maven-plugin/2.3.1/findbugs-maven-plugin-2.3.1.pom
> tells us that findbugs-m-p version 2.3.1 uses
> <dependency>
> <groupId>com.google.code.findbugs</groupId>
> <artifactId>findbugs-ant</artifactId>
> <version>1.3.9</version>
> </dependency>
>
> As for how to guarantee you are running the same rulesets and versions
> etc, I have absolutely no idea. Perhaps the findbugs and pmd user
> lists would be more useful for such a specific line of questioning...
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
**
*Warm wishes,*
*Jaina(hu jun ying)*