Runs Checkstyle on a Maven project. The check goal logs violations and fails the build; the checkstyle and checkstyle-aggregate goals write an HTML report, on their own or as part of the project site.
mvn checkstyle:check mvn checkstyle:checkstyle
The plugin requires Maven 3.9.0 and Java 8, and runs Checkstyle 9.3 by default. Projects can use a newer Checkstyle by adding it as a plugin dependency.
mvn verify
Run the integration tests in src/it with the run-its profile:
mvn -Prun-its verify
Build the plugin site, including the goal pages, with:
mvn install -DskipTests mvn site -Preporting
Open a pull request against master. Discuss larger changes on the developer mailing list first. See the guide to helping with Maven for the general process.