How to make Maven build fail on warnings?
maven, warnings
Solution
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) :)
Problem
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?