You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Erdfelt, Joakim" <jo...@cingular.com> on 2003/11/06 20:26:44 UTC

pmd plugin and custom rules

I have a set of custom pmd rules.
It consists of 2 parts.
1) a custom ruleset-foo.xml 
2) a jar file containing the implementation of those rules. (AbstractRule
classes).

Using the maven-pmd-plugin, how do I get my custom jar file into it's
classpath?

Using the often talked about hack of
${pom.getPluginContext('maven-pmd-plugin')} and then
manipulating it, doesn't work in this situation, as the MavenJellyContext
does not
apparently contain dependancy classpath information for me to manipulate in
a preGoal
prior to running the pmd:report goal.

I think this might be a bug. 

/me wanders off to jira to look ...

/* Joakim Erdfelt */