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.

Migrating from version 2.x to version 3.x

The Checkstyle plugin version 3.x is using Checkstyle 4.x, allowing the use of the new features in Java 5.

Migrating from version 1.x to version 2.x

The Checkstyle plugin version 1.x was using Checkstyle 2.x, the 2.x versions use Checkstyle 3.x. The Maven goals for the Checkstyle plugins have not changed and the way to invoke it can either be maven checkstyle or maven checkstyle:report.

Some properties have changed. The most important change is probably the addition of a maven.checkstyle.header.file one to point to your License file.

The major migration step is to migrate your previous Checkstyle properties (located in a properties file) to the new XML configuration file introduced by Checkstyle 3.x. The new configuration is described on the Checkstyle config page. Once you have finished migrating your Checkstyle configuration, modify the maven.checkstyle.properties property point to the new XML file.