Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Maven build fail on warnings?

Tags:

maven

warnings

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?

like image 366
MarnixKlooster ReinstateMonica Avatar asked Jan 24 '13 06:01

MarnixKlooster ReinstateMonica


1 Answers

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) :)

like image 137
yegor256 Avatar answered Oct 02 '22 11:10

yegor256