Apache Maven PMD Plugin

Clone this repo:
  1. a360f92 Bump pmdVersion from 7.29.0 to 7.30.0 (#792) by Andreas Dangel · 2 days ago master
  2. ed9bf11 Bump org.codehaus.mojo:animal-sniffer-maven-plugin from 1.29.1 to 1.29.2 (#791) by dependabot[bot] · 4 days ago
  3. 17ef5f2 Drop invoker settings the parent provides by Sylwester Lachiewicz · 5 days ago
  4. 43444d6 Format Groovy IT scripts by Sylwester Lachiewicz · 5 days ago
  5. 0b995d3 Modernize Groovy IT scripts by Sylwester Lachiewicz · 5 days ago

Apache Maven PMD Plugin

Apache License, Version 2.0, January 2004 Maven Central Reproducible Builds Verify

Runs the PMD static code analyzer and its Copy/Paste Detector (CPD) in a Maven build. The check and cpd-check goals fail the build on rule violations or duplicated code; the pmd and cpd goals, and their aggregate-* variants for multi-module builds, publish the results as site reports.

The plugin needs Maven 3.9.0 or later on Java 8 or later. Each release ships with a default PMD version, which you can override at runtime.

Build

mvn verify

The integration tests under src/it run with the run-its profile:

mvn -Prun-its verify

To build the plugin site locally, including the goal pages:

mvn -Preporting site

Contributing

Open an issue to discuss larger changes first, then send a pull request from a fork with tests (a unit test or an integration test under src/it) and run mvn -Prun-its verify before you push. See Contributing to Apache Maven and the developer mailing list.