PMD uses Maven.
You'll need to have a ~/.m2/toolchains.xml
file setup
with jdk 1.7 and jdk 1.8 (for some features in pmd).
See maven toolchains.
A example file can be found here: example-toolchains.xml.
PMD uses the maven wrapper, so you can simply build PMD as following:
./mvnw clean verify
(on Unix-like platform such as Linux and Mac OS X)mvnw.cmd clean verify
(on Windows)
This will create the zip files in the directory pmd-dist/target
:
cd pmd-dist/target
ls *.zip
That's all !
Building the maven site is done with the following commands:
./mvnw clean install -DskipTests=true
./mvnw install site site:stage -Psite
You'll find the built site in the directory target/staging/
.