Sometimes my Maven build gives a warning, ie, the Maven output has a line starting with [WARNING]
. (I am not talking about, eg, warnings in compiled Java code, but, eg, 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?
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) :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.