For some reason, checkstyle is disabled for the cargo-maven2-plugin. Enable and correct.
Support for Maven2 child modules and fixed/improved shared/extra classpath configurations with Tomcat
Also checkstyle the test Java files
Current checkstyle plugin 2.6 (checkstyle 5.0) reports errors for Maven Mojo annotations.
This seemingly is fixed with checkstyle 5.1+ and maven-checkstyle-plugin 2.7, see: MCHECKSTYLE-132
However, that version hasn't been released yet.
Committed revision 2750.