With maven2

If you changed the code and the build fails with checkstyle errors then you can prevent the build from executing the validation with:

mvn -Pnochecks install

If you also want to avoid running the jUnit tests the you can use:

mvn -Pfastinstall install

Attention: this does not work for all modules. Some of them still execute the jUnit tests. So it is better for now to use -Dmaven.test.skip=true -Pnochecks instead.