See:
http://cxf.apache.org/connecting-maven-eclipse-checkstyle-and-pmd.html
and
http://cxf.apache.org/setting-up-eclipse.html

CXF does this quite well.

The "setup.eclipse" profile we have sets up the workspace with CXF code 
styles, import orders, compiler warning levels, checkstyle rules, etc....  It 
then sticks the .pmd, .ruleset, and .checkstyle files for all the projects so 
that the eclipse plugins will pick them up.

Dan



On Thu October 22 2009 7:22:22 pm Hilco Wijbenga wrote:
> Hi all,
> 
> I'm trying to share the rule set definition for PMD between Maven and
> Eclipse. I had hoped to create a separate Maven project which would
> generate a JAR with the rule set I want to use. I had thought to add
> that JAR as a dependency to maven-pmd-plugin (or as a regular
> dependency) and reference it there but maven-pmd-plugin doesn't seem
> to be able to find it (within a JAR). It doesn't look like the Eclipse
> PMD plugin would be able to use it either.
> 
> Another option would be to use an http link (like
> http://svn/xyz/ruleset.xml). That should work for maven-pmd-plugin but
> it doesn't work for the Eclipse PMD plugin (AFAICT). In any event,
> that would torpedo any thought of repeatable builds.
> 
> Has anyone had any luck with this or a similar set up? Any other
> ideas? Or is it simply impossible?
> 
> Cheers,
> Hilco
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

-- 
Daniel Kulp
dk...@apache.org
http://www.dankulp.com/blog

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to