Hi

Can you please file this in JIRA [1], otherwise it might get lost in the traffic. Please include a sample project (if you can) and the complete output log that you get.

Note that maven-pmd-plugin requires a pmd jar file that can be used with Java 1.4, hence the "jdk14" classifier.

[1] http://jira.codehaus.org/browse/MPMD

Amir Eliaz wrote:
Hello,
   Looking in
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-pmd-plugin/2.3/maven-pmd-plugin-2.3.pom
I found out it depends on pmd-jdk14-4.1.1.jar
Now, this Jar does not contain net.sourceforge.pmd.rules
.basic.AvoidMultipleUnaryOperators
but the plugin implementation is looking for it.
But, if your use pmd-4.2.1.jar (from
http://repo1.maven.org/maven2/pmd/pmd/4.2.1)
instead of pmd-jdk14-4.1.1.jar (by manually replacing in ~/.m2/repository),
the class is found and everything works.
So the problem really is a wrong dependency in maven-pmd-plugin-2.3.pom,
which is the latest for this plugin.

FYI
--Amir



--
Dennis Lundberg

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

Reply via email to