How do I get a Java maven build to fail for compiler warnings?

I am trying:


but with no joy. Any ideas now to get medieval on such errors as suggested at this blog post?


EDIT: This answer is outdated however I can’t delete it as it was an accepted answer at the time.

This a bug with Maven see: it’s been fixed in 2.4 of the Maven-compiler-plugin but I don’t believe that’s been released yet. tag won’t work either unfortunately.

Leave a Reply

Your email address will not be published. Required fields are marked *