Search code examples
javamavenpmd

Building PMD jar with maven


I'm trying to build PMD (https://github.com/pmd/pmd), but when I attempt to build, there are no artifacts (JAR file, etc.) in the target/ directory of the project.

I am using Maven. I have tried mvn clean install and mvn clean package and both run without error - but nothing in the target/ directory.

What am I missing?


Solution

  • PMD is a multi-module build. The top-level project has an artifact packaging type of pom so it has no output (other than the pom.xml file).

    If you look at the PMD project continuous integration build results, you will see that the JARs are in the sub-modules of the project.

    In addition, there appears to be an "project aggregate" that probably zips up all the jars into one release package. It appears you get this by building the pmd-dist module.