Treat maven warnings as errors

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Treat maven warnings as errors

Yaron Golan
Hi,
Is there a way to treat the maven warnings as errors?


Reply | Threaded
Open this post in threaded view
|

RE: Treat maven warnings as errors

Yaron Golan
Anyone?

"No" is an answer as well, you know ... :)


-----Original Message-----
From: Yaron Golan [mailto:[hidden email]]
Sent: Wednesday, March 01, 2017 12:05 PM
To: [hidden email]
Subject: Treat maven warnings as errors

Hi,
Is there a way to treat the maven warnings as errors?



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Treat maven warnings as errors

Robert Scholte-8
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 <[hidden email]>  
wrote:

> Anyone?
>
> "No" is an answer as well, you know ... :)
>
>
> -----Original Message-----
> From: Yaron Golan [mailto:[hidden email]]
> Sent: Wednesday, March 01, 2017 12:05 PM
> To: [hidden email]
> Subject: Treat maven warnings as errors
>
> Hi,
> Is there a way to treat the maven warnings as errors?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Treat maven warnings as errors

Daniel Schulz
In reply to this post by Yaron Golan
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 <[hidden email]> wrote:
>
> Anyone?
>
> "No" is an answer as well, you know ... :)
>
>
> -----Original Message-----
> From: Yaron Golan [mailto:[hidden email]]
> Sent: Wednesday, March 01, 2017 12:05 PM
> To: [hidden email]
> Subject: Treat maven warnings as errors
>
> Hi,
> Is there a way to treat the maven warnings as errors?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Treat maven warnings as errors

Gordon Cody-2
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 <[hidden email]>
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 <[hidden email]> wrote:
> >
> > Anyone?
> >
> > "No" is an answer as well, you know ... :)
> >
> >
> > -----Original Message-----
> > From: Yaron Golan [mailto:[hidden email]]
> > Sent: Wednesday, March 01, 2017 12:05 PM
> > To: [hidden email]
> > Subject: Treat maven warnings as errors
> >
> > Hi,
> > Is there a way to treat the maven warnings as errors?
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
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: [hidden email]