Disable maven checkstyle

RandomCoder picture RandomCoder · Aug 31, 2015 · Viewed 72.6k times · Source

I want to execute a maven target but checkstyle errors forbids that. I have no time right now to correct checkstyle error (my checkstyle rules have been recently updated and I can't handle all of them right now).

Is there a way to disable checkstyle operation and execute my goal anyway ?

Answer

RandomCoder picture RandomCoder · Aug 31, 2015

Solution is : mvn [target] -Dcheckstyle.skip.

I like this solution as it is temporary and do not require editing of pom files, or anything that can be versioned.