Wednesday, May 5, 2010

How to install PMD in Eclipse ?

The easiest way to install PMD is by using the remote update site.
Users behind firewalls should check proxy settings before going any further.
If these settings are misconfigured the updater will not work. PMD also
supplies a zip file for manual installation. Download the file and follow
the readme. Demonstrated below is installing PMD via the Eclipse Software Updater.

  1. Launch Eclipse.
  2. Navigate to Help | Software Updates | Find and Install...
  3. Select "Search for new features to install" and click Next
  4. Click New Remote Site...
  5. Enter a name (PMD) and the URL http://pmd.sourceforge.net/eclipse

http://www.eclipsezone.com/articles/pmd/images/remote_site.png

  1. In Sites to include in search check PMD and click Finish
  2. In the Search Results dialog check PMD for Eclipse 3 3.1.0 and click Next

http://www.eclipsezone.com/articles/pmd/images/install_pmd_remote.png

  1. Accept the terms of the license agreements and click Next
  2. Click Finish.
  3. Wait for Eclipse to download the required jar files, then click Install
  4. Restart the workbench. This will load the PMD plugin.
  5. Navigate to Window | Show View | Other...
  6. Select PMD | PMD Violations
  7. PMD Violations view should appear at the bottom pane

 

No comments:

Post a Comment