Home / Java Patterns and Pitfalls     frequal.com

How To Enable Warnings in Maven


By default Maven doesn't show Java compiler warnings or deprecations. With a small entry in your pom.xml file you can enable them.

Copy and paste the XML below into your pom.xml file:

Then you should see warnings and deprecations in your Maven output, just like compiler errors before.
Last modified on 20 May 2009 by AO

Copyright © 2016 Andrew Oliver