Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to install PMD in Eclipse Kepler

I have installed PMD in Eclipse Kepler using Eclipse market place. But I am unable to access it after the installation.

When I go to Window → Preferences and search for PMD, I get no results.

Is there any other plugin available for source code cleanup?
Or: What needs to be done to install PMD in Kepler?

Thanks

like image 802
user223614 Avatar asked Oct 18 '13 06:10

user223614


People also ask

How do I install a PMD file?

Installation ✏️️ PMD is distributed as a zip archive, which includes both PMD and CPD. You can download the latest binary distribution from the github releases page. Unzip it into any directory, optionally add the bin subdirectory in your PATH , and you're good to go!


3 Answers

I found the PMD plugin that installs through Eclipse Marketplace to be harder to use than the standalone one. Install available by an Eclipse update site here.

like image 62
Jeanne Boyarsky Avatar answered Oct 11 '22 19:10

Jeanne Boyarsky


I've tried all these suggestions and now i have it working in Kepler; here's how to do it: I made sure my Eclipse Kepler instance was using Java 7--it was.

The link from the eclipse marketplace did not work. It would show a PMD option for the individual projects properties, but there were no rules to select from. Also the main workspace preferences were not showing up.

I had to install it using this update site, as Jeanne Boyarsky mentioned:

http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/

Restart Kepler.

The PMD option now shows up in the Windows->Preferences->PMD

The PMD project menu now shows up when right clicking on the project.

like image 37
PHY6 Avatar answered Oct 11 '22 18:10

PHY6


The install information on the web site for this plugin http://acanda.github.io/eclipse-pmd/getting-started.html says you must open the Properties for a project and look at the PMD tab.

like image 36
greg-449 Avatar answered Oct 11 '22 19:10

greg-449