Disable maven checkstyle

后端 未结 4 1606
一向
一向 2021-01-30 19:41

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 c

4条回答
  •  没有蜡笔的小新
    2021-01-30 20:06

    If you want to disable checkstyle from pom, you can add checkstyle plugin to your pom and set execution phase to none. Important thing for me was that I have to set id exactly the same as in parent pom. In othercase it doesn't works.

            
                org.apache.maven.plugins
                maven-checkstyle-plugin
                
                    
                        checkstyle-validation
                        none
                    
                
            
    

提交回复
热议问题