The Checkstyle plugin generates report regarding the code style used by the developers. For more information about Checkstyle, see http://checkstyle.sourceforge.net/
The plugin can be configured in the project's pom. Predefined rulesets are included with the plugin, these are: sun_checks.xml , turbine_checks.xml , avalon_checks.xml and maven_checks.xml . You can also use a custom ruleset by specifying it in the plugin configuration.
The Checkstyle Plugin has two goals:
Instructions on how to use the Checkstyle Plugin can be found here .
The following examples show how to use the Checkstyle Plugin in more advanced usecases: