5
votes

I'm installing Eclipse Juno for Java Developers for a class, and we've been asked to install the PMD plugin. We have our own xml file with the rules and we have to replace the default rules for the plugin. When I browse and select the file, the import tool doesn't allow me to press 'ok'.

Any suggestions? I'm pretty new to this stuff.

3
This is not a coding question. - gkovacs90
@gkovacs90 but it is about a development tool which is on topic - mmmmmm

3 Answers

6
votes

It's a problem with the plugin 4, try with 3. Import your rules and you can after that do an update to 4.

2
votes

You have to set it in the Eclipse configuration of PMD: Window -> Preferences -> PMD -> Rules Configuration -> Import Rules Set

Before you can do this the PMD plug-in itself must be installed: Help -> Eclipse Marketplace... -> Search for PMD, install it and restart eclipse.

1
votes

Right click on project - > properties -> PMD -> check Enable PMD -> click on radio button Use the ruleset configuration in project file -> Browse -> select your custom pmd xml file