Issue Details (XML | Word | Printable)

Key: MPPMD-3
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Joakim Erdfelt
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven 1.x PMD Plugin

PMD Plugin doesn't allow for custom rulesets.

Created: 06/Nov/03 02:13 PM   Updated: 30/Nov/03 09:56 PM   Resolved: 10/Nov/03 08:17 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File maven-pmd-plugin-custom-rulesets.patch (2 kB)
2. GZip Archive pmd-rules.tar.gz (18 kB)

Environment:
Windows 2000 + J2SE 1.4.2_01 + maven 1.0-rc1
Solaris 2.8 + J2SE 1.4.1_03 + maven 1.0-rc1


 Description  « Hide

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.



Joakim Erdfelt added a comment - 06/Nov/03 02:15 PM

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.


Joakim Erdfelt made changes - 06/Nov/03 02:15 PM
Field Original Value New Value
Attachment maven-pmd-plugin-custom-rulesets.patch [ 11005 ]
Joakim Erdfelt added a comment - 06/Nov/03 02:21 PM

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.


Joakim Erdfelt made changes - 06/Nov/03 02:21 PM
Attachment pmd-rules.tar.gz [ 11006 ]
dion gillard added a comment - 10/Nov/03 08:17 AM

Applied in 1.3-SNAPSHOT.


dion gillard made changes - 10/Nov/03 08:17 AM
Status Unassigned [ 1 ] Closed [ 6 ]
Fix Version/s 1.0-rc2 [ 10245 ]
Resolution Fixed [ 1 ]
Jason van Zyl made changes - 30/Nov/03 09:56 PM
Affects Version/s 1.0-rc1 [ 10181 ]
Fix Version/s 1.0-rc2 [ 10245 ]
Component/s plugin-pmd [ 10210 ]
Key MAVEN-1008 MPPMD-3
Project maven [ 10030 ] maven-pmd-plugin [ 10358 ]