-- Synchronization between eclipse-cs and maven-eclipse-plugin --
Maven-checkstyle-plugin
Maven has support for various reporting and Q&A tools, including checkstyle. The
maven-checkstyle-plugin can be used in a Maven project to generate a violations report
or to check for violation during the build.
Need for synchronization
To avoid a configuration hell, we need a mecanism to ensure the maven plugin and
eclipse-cs share the same Checkstyle rules and configuration. M2eclipse, the
maven extension for Eclipse, comes with a simple extension API that we used to
translate the maven-checkstyle-plugin configuration into eclipse-cs when a Maven
project is configured in Eclipse.
How to ?
First install the m2eclipse plugin from
m2eclipse update site. The install the optional checkstyle-m2eclispe integration
from eclipse-cs update site. After installation, when you import a Maven project that
has a maven-checkstyle-plugin configuration set, this one will be automagically applied
to eclipse-cs.