Maven 1.x PMD Plugin

PMD Plugin doesn't allow for custom rulesets.

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows 2000 + J2SE 1.4.2_01 + maven 1.0-rc1
    Solaris 2.8 + J2SE 1.4.1_03 + maven 1.0-rc1
  • Number of attachments :
    2

Description

If you want to use a custom ruleset (using a ruleset jar and ruleset definition) you cannot.

Reason: there is no way to add the custom ruleset jar to the pmd classpath.

Activity

Hide
Joakim Erdfelt added a comment -

Patch to add the project dependancies to the pmd classpath.
This should allow a custom ruleset jar file that is defined as a dependancy to be added to the pmd classpath.

Show
Joakim Erdfelt added a comment - Patch to add the project dependancies to the pmd classpath. This should allow a custom ruleset jar file that is defined as a dependancy to be added to the pmd classpath.
Hide
Joakim Erdfelt added a comment -

Small maven project to demonstrate patch.
1 project with 2 subprojects.
1) logging-rules/ - creates the ruleset jar file.
2) pmd-testing/ - example of how to use the generated jar above.

This project consists of a trivial 3 rule ruleset defined via a ruleset.xml and a set of classes.

Show
Joakim Erdfelt added a comment - Small maven project to demonstrate patch. 1 project with 2 subprojects. 1) logging-rules/ - creates the ruleset jar file. 2) pmd-testing/ - example of how to use the generated jar above. This project consists of a trivial 3 rule ruleset defined via a ruleset.xml and a set of classes.
Hide
dion gillard added a comment -

Applied in 1.3-SNAPSHOT.

Show
dion gillard added a comment - Applied in 1.3-SNAPSHOT.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: