You’ll need to either check out the source code or download the latest source release. Assuming you’ve got the latest source release, unzip it to a directory:
[tom@hal building]$ ls -l total 5716 -rw-rw-r-- 1 tom tom 5837216 Jul 17 13:09 pmd-src-5.3.3.zip [tom@hal building]$ unzip -q pmd-src-5.3.3.zip [tom@hal building]$
Now cd down into the pmd directory:
[tom@hal building]$ cd pmd-src-5.3.3 [tom@hal pmd-src-5.3.3]$ ls -l | grep pom.xml -rw-rw-r-- 1 tom tom 29357 Jan 31 20:00 pom.xml [tom@hal pmd-src-5.3.3]$
That’s the project configuration for maven… let’s compile!
[tom@hal pmd-src-5.3.3]$ mvn clean package [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building PMD 5.3.3 [INFO] ------------------------------------------------------------------------ [INFO] ... Results : Tests run: 829, Failures: 0, Errors: 0, Skipped: 9 [INFO] [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ pmd --- [INFO] Building jar: target/pmd-5.3.3.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1:41.062s [INFO] Finished at: Mon Apr 30 09:36:12 CEST 2012 [INFO] Final Memory: 13M/187M [INFO] ------------------------------------------------------------------------ [tom@hal pmd-src-5.3.3]$
Notes:
A paucity of detail, I’m sure you’d agree. If you think this document can be improved, please post here and let me know how. Thanks!