FWIW, in 2.0.9 you can override the plugin dependency and force a newer
version of the PMD jar (provided the api is compatible of course)

-----Original Message-----
From: Benjamin Bentmann [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 3:08 PM
To: [email protected]
Subject: Re: Maven PMD plugin dependency on pmd Jar is out of date


Amir Eliaz wrote:
> So the problem really is a wrong dependency in
maven-pmd-plugin-2.3.pom,
> which is the latest for this plugin.

The dependency in general is not wrong, it's just inappropriate for
users
that would like to use newer rules.

The SVN head has just been updated to use 4.2.1 (see
http://jira.codehaus.org/browse/MPMD-78). Until the PMD Plugin 2.4 gets
released, the following should solve your problem:

<project>
  ...
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-pmd-plugin</artifactId>
        <version>2.3</version>
        <dependencies>
          <dependency>
            <groupId>pmd</groupId>
            <artifactId>pmd-jdk14</artifactId>
            <version>4.2.1</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>
  ...
</project>

i.e. overwrite the plugin class path with the PMD version your require.
Note
that this must be done using <build>, there is no <dependencies> element
under <reporting>.


Benjamin
-- 
View this message in context:
http://www.nabble.com/Maven-PMD-plugin-dependency-on-pmd-Jar-is-out-of-d
ate-tp16746339s177p16764207.html
Sent from the Maven Developers 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]

Reply via email to