Apache Maven 1.x has reached its end of life, and is no longer supported. For more information, see the announcement. Users are encouraged to migrate to the current version of Apache Maven.

Maven CheckStyle Plugin

This plugin generates a nicely formatted Checkstyle report so code violations can be easily found and corrected.

Using the dashboard report

To use older versions of the dashboard plugin (< 1.9) report with later versions of this one (> 2.5) you need to change these properties:

# Properties for the Checkstyle files aggregator
maven.dashboard.aggregator.csfiles.artifact = ${maven.build.dir}/checkstyle/checkstyle-raw-report.xml

# Properties for the Checkstyle error/warning aggregator (all errors/warnings)
maven.dashboard.aggregator.csall.artifact = ${maven.build.dir}/checkstyle/checkstyle-raw-report.xml

# Properties for the Checkstyle error aggregator (only errors)
maven.dashboard.aggregator.cserrors.artifact = ${maven.build.dir}/checkstyle/checkstyle-raw-report.xml

# Properties for the Checkstyle warning aggregator (only warnings)
maven.dashboard.aggregator.cswarnings.artifact = ${maven.build.dir}/checkstyle/checkstyle-raw-report.xml