How to make Maven build fail on warning?

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?

+5
source share
1 answer

This feature has already been proposed by the Maven team in the MNG-5091 . Promote this in your JIRA and wait (this is what I did) :)

+3
source

All Articles