How to make Maven build fail on warnings?

霸气de小男生 提交于 2019-12-31 00:01:42

问题


Sometimes my Maven build gives a warning, i.e., the Maven output has a line starting with [WARNING]. (I am not talking about, e.g., warnings in compiled Java code, but, e.g., a warning that an empty jar-file is being created.)

In such a situation I want my build to fail. How do I do that?


回答1:


This feature was already suggested to Maven team in MNG-5091. Upvote it in their JIRA and let's wait (this is what I did) :)



来源:https://stackoverflow.com/questions/14495014/how-to-make-maven-build-fail-on-warnings

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!