Migrating from version 1.x to version 2.x

The Checkstyle plugin version 1.x was using Checkstyle 2.x and the new 2.x versions uses 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. An example is provided here. Once you have finished migrating your Checkstyle configuration, modify the maven.checkstyle.properties property point to the new XML file.