Is there a possibility to somehow force maven to fail the build if there are some checkstyle errors? Now I have to run site goal to generate java
checkstyle
site
java
Even though it has been a long time since this was asked, I did run into another problem:
JavadocMethod: Unable to get class information for @throws tag 'X'.
I solved this by changing the phase from "validate" to "test" so that checkstyle runs after the compile phase.