Jeff-

I was invoking maven directly through the AnthillPro server's maven build
plugin.  The plugin however seems to have a problem capturing the return
codes(if they are even being returned that is).  I just looked in jira and
saw that return codes are a feature that is to be implemented with Maven 1.1
so I don't think anything is being returned.  Does anybody know for sure if
this is the case?

It looks like I will need to invoke maven through an ant build script as you
are describing below rather than using the built in integration plugin that
comes with the product.

Has anybody used the AnthillPro maven builder to invoke the maven goals?

I will give that a try and see if I can get it to work.

Thanks,

Scott

-----Original Message-----
From: Jefferson K. French [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 4:07 PM
To: Maven Users List
Subject: Re: Maven Return Codes in a Continuous Integration environment


What version of Maven are you using? I remember reading something
about Maven not returning a failure code, but I think that was back
around beta8.

How are you invoking Maven from Anthill? I have Anthill run an Ant
script, which then invokes com.werken.forehead.Forehead in a <java>
element. If you do this, too, make sure you have failonerror="true" in
<java>. Otherwise the Ant task will appear successful even though the
build/tests failed.

  Jeff

On Wed, 13 Aug 2003, at 14:31:20 [GMT -0400] Nelson, Scott (MAN -
Corporate) wrote:

> Hey everybody,
> I am new to maven and I am in the process of setting up a continuous
> integration environment with anthill using maven.  The problem I am having
> is maven doesn't seem to return anything other than a 0 for a return code
> therefore I always get a build success regardless of the output from the
> executed the maven goals. 
> I was wondering does maven supply different return codes for a build
success
> and build failure?  
> Do I just have to set the property like maven.test.failure.ignore to
false?

> If this property is set, will maven return a 1 when a build failure is
> thrown or some other non-zero value?  Anthill is looking for a 1 to
signify
> that the build failed.
> Any help in understanding this would be greatly appreciated.
> Thanks,
> Scott 

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
mailto:[EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law.  If
you are not the intended recipient, you should delete this message and are
hereby notified that any disclosure, copying, or distribution of this
message, or the taking of any action based on it, is strictly prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to