Which rulesets are you using inside Eclipse? By default, the Maven PMD Plugin 
only uses the rulesets basic.xml, unusedcode.xml and imports.xml.

Take a look here [1] and here [2].

Hth,

Nick Stolwijk

[1] http://maven.apache.org/plugins/maven-pmd-plugin/examples/usingRuleSets.html
[2] http://pmd.sourceforge.net/rules/index.html


-----Original Message-----
From: raghu121 [mailto:[EMAIL PROTECTED]
Sent: Tue 2/5/2008 4:34 AM
To: users@maven.apache.org
Subject: Re: PMD pom example
 

Thanks for the reply though. I should have mentioned that I had already read
this.
Unfortunately its giving me this when I executed site goal "PMD found no
problems in your source code." But I do find lots of problems when I use the
PMD eclipse plugin.

I am attaching my pom.xml





Dennis Lundberg-2 wrote:
> 
> raghu121 wrote:
>> Hi,
>> 
>> Am looking for a PMD pom.xml example for Maven2
> 
> The first place I would look for this is the usage page for the PMD
> plugin:
> http://maven.apache.org/plugins/maven-pmd-plugin/usage.html
> 
> It is considered good practice to read the documentation before asking 
> questions on the user list.
> 
> -- 
> Dennis Lundberg
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
http://www.nabble.com/file/p15282862/pom.xml pom.xml 
http://www.nabble.com/file/p15282862/pom.xml pom.xml 
-- 
View this message in context: 
http://www.nabble.com/PMD-pom-example-tp15262435s177p15282862.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to