Install

Eclipse Marketplace

The recommended way to install the plugin on Eclipse 3.7 (and later) is to drag and drop the following button into a running Eclipse workspace:

Update Site

An alternative way to install the plugin on Eclipse 3.7 (and later) is via the plugin update site http://www.acanda.ch/eclipse-pmd/release/latest.

  1. In Eclipse go to Help > Install new software...
  2. Add a new installation site and use http://www.acanda.ch/eclipse-pmd/release/latest as the location.
  3. Select the plugin Eclipse PMD.
  4. Finish the installation by accepting the license and restarting Eclipse.

Offline Installation

If you do not have access to the internet you can download the plugin as a zip file and install it manually.

  1. Download the latest zip file from https://github.com/acanda/eclipse-pmd/releases and copy it to your offline computer.
  2. In Eclipse go to Help > Install new software...
  3. Add a new installation site and click the button Archive... to select to zip file you downloaded.
  4. Select the plugin Eclipse PMD.
  5. Finish the installation by accepting the license and restarting Eclipse.

Activate

Use the property dialog of your project(s) to activate eclipse-pmd.

  1. If you don't already have a PMD rule set then create a new one.
  2. Open the property dialog of your project.
  3. Select the PMD property page.
  4. Check the Enable PMD for this project checkbox.
  5. Add one or more rule sets by clicking the Add... button.
  6. Close the property dialog. Your project will now be analysed by PMD.
  7. If you have another project where you want to activate eclipse-pmd, continue with step 2.

Fork me on GitHub