Sometimes my Maven build gives a warning, i.e. Maven output has a line starting with [WARNING]. (I'm not talking, for example, about warnings in compiled Java code, but, for example, about warning the creation of an empty jar file.)
In this situation, I want my build to fail. How to do it?
source
share