You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by NickDeGraeve <ni...@telenet.be> on 2010/09/09 12:45:03 UTC
How to fail Maven build when exec started Ant build fails?
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to fail Maven build when exec started Ant build fails?
[SOLVED]
Posted by NickDeGraeve <ni...@telenet.be>.
Brian Fox-3 wrote:
> you could use the enforcer to check for the existence of certain files
> produced by that build.
It may not be the cleanest solution but at least it works. Thanks.
--
View this message in context: http://maven.40175.n5.nabble.com/How-to-fail-Maven-build-when-exec-started-Ant-build-fails-tp2827248p2834669.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to fail Maven build when exec started Ant build fails?
Posted by Brian Fox <br...@infinity.nu>.
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 <ni...@telenet.be> 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: 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