There is not another version that uses PMD 4.2 as yet that's my point. I have
now tested our build with PMD plugin version 2.2 and 2.3. Version 2.2 works
fine and version 2.3 does not the only difference I see between the versions
is the PMD dependency, as listed below. The strange thing is the version for
2.3 seems to be a non standard PMD jar and has rules missing hence the error
messages I received during the builds. I think this is worth a JIRA report.
V2.2
<dependency>
<groupId>pmd</groupId>
<artifactId>pmd</artifactId>
<version>3.9</version>
</dependency>
V2.3
<dependency>
<groupId>pmd</groupId>
<artifactId>pmd-jdk14</artifactId>
<version>4.1.1</version>
</dependency>
Brian E Fox wrote:
>
> Is there another version of the plugin that uses PMD 4.2? In Maven
> versions prior to 2.0.9 you can't override the plugin dependencies so
> I'm not sure how it was working before.
>
> -----Original Message-----
> From: Paul G [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 02, 2008 9:02 AM
> To: [email protected]
> Subject: PMD 2.3 plugin error
>
>
> I am running PMD reporting plugin and I get the below error
> java.lang.ClassNotFoundException:
> net.sourceforge.pmd.rules.SingularField
>
> Now this used to work some time back, plus when i lookin in the plugin
> pom
> the only dependency that mentions pmd is
> <dependency>
> <groupId>pmd</groupId>
> <artifactId>pmd-jdk14</artifactId>
> <version>4.1.1</version>
> </dependency>
> When I look in this jar the class in question is indeed not there!! I
> have
> set the target jdk to 1.5 so why is it using PMD 4.1.1 jdk14? why is the
> plugin not using PMD 4.2?
>
> I'm totally confused as this ruke once worked and no it does not yet it
> is a
> valid rule on the PMD web site?
> --
> View this message in context:
> http://www.nabble.com/PMD-2.3-plugin-error-tp16446926s177p16446926.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]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/PMD-2.3-plugin-error-tp16446926s177p16466117.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]