How do I get a Java maven build to fail for compiler warnings?

后端 未结 6 541
暖寄归人
暖寄归人 2020-12-10 11:01

I am trying:

        
            org.apache.maven.plugins
            maven-compiler-plugin&l         


        
6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 11:44

    An update on 2020, I am using Spring Boot 2.2.5. The following config can stop the mvn install when warning, error happen.

    
        org.apache.maven.plugins
        maven-compiler-plugin
        
            true
            true
        
     
    

提交回复
热议问题