Re: Treat maven warnings as errors
Hello Yaron You may find this an impossible task to accomplish. The standard maven plugins generally do a good job with their messages but some 3rd-party jars and plugins log WARNING messages, a few even log ERROR messages when the developer really should have used INFO or possibly logged nothing at all. Mostly these messages would show up in the logs when you run your junit/surefire tests but some can come even when you build with skipTests=true. How far you get will depend on your projects dependencies and the set of plugins you use in your builds. I wish you luck. Just my personal opinion, Gordon On Mon, Mar 6, 2017 at 8:25 PM, Daniel Schulz wrote: > Hi, > > Might this help you? > > https://maven.apache.org/plugins/maven-dependency- > plugin/examples/failing-the-build-on-dependency-analysis-warnings.html > > http://stackoverflow.com/questions/9192613/how-do-i- > get-a-java-maven-build-to-fail-for-compiler-warnings > > Kind regards, Daniel. > > > > On 06.03.2017, at 15:58, Yaron Golan wrote: > > > > Anyone? > > > > "No" is an answer as well, you know ... :) > > > > > > -Original Message- > > From: Yaron Golan [mailto:ygo...@interwise.com] > > Sent: Wednesday, March 01, 2017 12:05 PM > > To: users@maven.apache.org > > Subject: Treat maven warnings as errors > > > > Hi, > > Is there a way to treat the maven warnings as errors? > > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Best Regards, Gord Cody Senior Release Manager Zafin Inc. 179 Colonnade Road-Suite 100, Ottawa ON, Canada Phone: +1 (613) 216-2504 Fax: +1 (613) 688-1374 Mobile: +1 613-601-2734 Web: http://zafin.com Email: gordon.c...@zafin.com
Re: Treat maven warnings as errors
Hi, Might this help you? https://maven.apache.org/plugins/maven-dependency-plugin/examples/failing-the-build-on-dependency-analysis-warnings.html http://stackoverflow.com/questions/9192613/how-do-i-get-a-java-maven-build-to-fail-for-compiler-warnings Kind regards, Daniel. > On 06.03.2017, at 15:58, Yaron Golan wrote: > > Anyone? > > "No" is an answer as well, you know ... :) > > > -Original Message- > From: Yaron Golan [mailto:ygo...@interwise.com] > Sent: Wednesday, March 01, 2017 12:05 PM > To: users@maven.apache.org > Subject: Treat maven warnings as errors > > Hi, > Is there a way to treat the maven warnings as errors? > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Treat maven warnings as errors
https://issues.apache.org/jira/browse/MNG-6065 is what you are looking for. So the answer is: no, not yet. Robert On Mon, 06 Mar 2017 15:57:32 +0100, Yaron Golan wrote: Anyone? "No" is an answer as well, you know ... :) -Original Message- From: Yaron Golan [mailto:ygo...@interwise.com] Sent: Wednesday, March 01, 2017 12:05 PM To: users@maven.apache.org Subject: Treat maven warnings as errors Hi, Is there a way to treat the maven warnings as errors? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Treat maven warnings as errors
Anyone? "No" is an answer as well, you know ... :) -Original Message- From: Yaron Golan [mailto:ygo...@interwise.com] Sent: Wednesday, March 01, 2017 12:05 PM To: users@maven.apache.org Subject: Treat maven warnings as errors Hi, Is there a way to treat the maven warnings as errors? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Treat maven warnings as errors
Hi, Is there a way to treat the maven warnings as errors?