You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Frey, John (MED)" <Jo...@med.ge.com> on 2003/04/21 20:45:59 UTC

maven doesn't return non-zero value for failures

Can someone tell me how to apply the patch for this issue? Maven always
returns 0 even for compile errors. My Continuous Integration tool
(AnthillPro) expects non-zero for failures.

http://jira.codehaus.org/secure/ViewIssue.jspa?key=FOREHEAD-3

Am I required to rebuild the forehead.jar to fix this?

GE  Medical Systems 
______________________________________________________ 
John E. Frey 
Lead Software Developer, iCenter
Global Service Technology 
Phone: (262) 896-2800  Fx: (262) 896-2790 
email: John.Frey@med.ge.com 
http://www.gemedicalsystems.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven doesn't return non-zero value for failures

Posted by Siegfried Göschl <si...@it20one.at>.
Hi folks,

I fixed that for my MAVEN B7 under Windows and the problem was NOT 
within the FOREHEAD library !!! 

I applied the FOREHEAD patch to find out that MAVEN calls 
System.exit() with a proper exit value before returning control to 
FOREHEAD. But the return value was swallowed by the maven.bat. 
Unfortunately I did not find a proper solution for passing that 
return value through the Windows batch files since I either call 
MAVEN directly or start it using ANT. 

Having said that I ended with two batch files doing the work .... 
IMHO window batch files are flawed or I bloody stupid ... ;-)

Cheers,

Siegfried Goeschl
CTO
=================================
IT20one GmbH
mail: siegfried.goeschl@it20one.at
phone: +43-1-9900046
fax: +43-1-52 37 888
www.it20one.at

On 22 Apr 2003 at 9:14, Brian Ewins wrote:

> Yes, or you can just rebuild that one class and drop it in the jar;
> thats what I did. I originally submitted that patch to get maven
> working with anthill, which it does fine.
> 
> Apparently the fix has been made in classworlds, which will replace
> forehead in the next release (as I understand it)
> 
> Frey, John (MED) wrote:
> > Can someone tell me how to apply the patch for this issue? Maven
> > always returns 0 even for compile errors. My Continuous Integration
> > tool (AnthillPro) expects non-zero for failures.
> > 
> > http://jira.codehaus.org/secure/ViewIssue.jspa?key=FOREHEAD-3
> > 
> > Am I required to rebuild the forehead.jar to fix this?
> > 
> > GE  Medical Systems 
> > ______________________________________________________ 
> > John E. Frey 
> > Lead Software Developer, iCenter
> > Global Service Technology 
> > Phone: (262) 896-2800  Fx: (262) 896-2790 
> > email: John.Frey@med.ge.com 
> > http://www.gemedicalsystems.com 
> > 
> > 
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For
> > additional commands, e-mail: users-help@maven.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For
> additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven doesn't return non-zero value for failures

Posted by Brian Ewins <Br...@btinternet.com>.
Yes, or you can just rebuild that one class and drop it in the jar; 
thats what I did. I originally submitted that patch to get maven working 
with anthill, which it does fine.

Apparently the fix has been made in classworlds, which will replace 
forehead in the next release (as I understand it)

Frey, John (MED) wrote:
> Can someone tell me how to apply the patch for this issue? Maven always
> returns 0 even for compile errors. My Continuous Integration tool
> (AnthillPro) expects non-zero for failures.
> 
> http://jira.codehaus.org/secure/ViewIssue.jspa?key=FOREHEAD-3
> 
> Am I required to rebuild the forehead.jar to fix this?
> 
> GE  Medical Systems 
> ______________________________________________________ 
> John E. Frey 
> Lead Software Developer, iCenter
> Global Service Technology 
> Phone: (262) 896-2800  Fx: (262) 896-2790 
> email: John.Frey@med.ge.com 
> http://www.gemedicalsystems.com 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org