Well short of figuring out how to make the exec plugin detect the ant
failure, which could be tricky because of how ecodes are handled at
times...you could use the enforcer to check for the existence of
certain files produced by that build.

On Thu, Sep 9, 2010 at 6:45 AM, NickDeGraeve <[email protected]> wrote:
>
> How can I make the Maven build fail if the Ant build that was starten via
> exec-maven-plugin fails?
>
> I'm modifying an existing Ant build so it will build on Bamboo. The easiest
> way to get all the dependecies sorted out was to wrap it in a Maven build.
> An added complication was that some added tasks run only with Ant 1.5.x so I
> couldn't use maven-antrun-plugin but I got it working using
> exec-maven-plugin.
>
> I got my build working locally and on Bamboo. One issue I still have is that
> when the Ant build fails, the Maven build continues and ends successful.
>
> What do I need to do to fail the Maven build if the Ant build fails?
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/How-to-fail-Maven-build-when-exec-started-Ant-build-fails-tp2827248p2827248.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

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

Reply via email to