Annoyed by checkstyle errors?

Sometimes, when I try to build some (open-source) project from sources, I got checkstyle errors like this (example comes from Fuse ESB):

[INFO] [checkstyle:checkstyle {execution: validate}]
[WARNING] File encoding has not been set, using platform encoding UTF-8,
i.e. build is platform dependent!
[INFO] Starting audit...
case child at indentation level 12 not at correct indentation, 8
block child at indentation level 16 not at correct indentation, 12
Audit done.

[INFO] An error has occurred in Checkstyle report generation.

Embedded error: There are 9 checkstyle errors.

It's annyoing, cause all I want is to build it. So, what's the solution? Ah, it's simple:

mvn [commands] -Dcheckstyle.skip

It's much more convenient than looking for checkstyle plugin in pom.xml (especially if project has many modules and many pom.xml files).

This used to be my blog. I moved to long time ago.


Please comment using