问题
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