Okay as advised by Stephen  Connolly, from my maven pom file , I am trying to 
call some other script(let's
assume it is an ant script for sake of discussion) which fails but my
maven build process goes on. I want my maven build to fail if it calls
some external script which fails. I looked at documentation of plugin
but I don't see any option that would help me setting up what to do when
my called program or script via exec-maven-plugin fails



  <plugin>

        <groupId>org.codehaus.mojo</groupId>

        <artifactId>exec-maven-plugin</artifactId>

        <version>1.1</version>

        <executions>

          <execution>

            <id>dowithant</id>

            <configuration>

              <executable>ant</executable>

            </configuration>

              <phase>compile</phase>

            <goals>

              <goal>exec</goal>

            </goals>

          </execution>         

        </executions>

 </plugin>



It calls my ant script which fails but it goes on with my maven build :-(.



Is there any way I can catch the failure of external script ?



Thanks,



Petr


--- On Fri, 10/31/08, Stephen Connolly <[EMAIL PROTECTED]> wrote:
From: Stephen Connolly <[EMAIL PROTECTED]>
Subject: Re: Nant Plugin for Maven to integrate dot net component in main 
project build ?
To: "Maven Users List" <[email protected]>, [EMAIL PROTECTED]
Date: Friday, October 31, 2008, 2:13 AM

have a look at the exec-maven-plugin

2008/10/30 Petr V. <[EMAIL PROTECTED]>

> Yeah we have looked into nMaven but these are the existing projects and we
> do not want to put effort to convert them to nMaven _now_.
>
> Is there any way possible to call nant script from maven ?
>
> Thanks,
>
> Petr
>
>
>
>
>
> --- On Thu, 10/30/08, Wayne Fay <[EMAIL PROTECTED]> wrote:
> From: Wayne Fay <[EMAIL PROTECTED]>
> Subject: Re: Nant Plugin for Maven to integrate dot net component in main
> project build ?
> To: "Maven Users List" <[email protected]>
> Date: Thursday, October 30, 2008, 11:47 PM
>
> On Thu, Oct 30, 2008 at 10:37 AM, Petr V. <[EMAIL PROTECTED]>
wrote:
> > I have a project that has many components. Some are written in dot
net
> and
> some are in java.We are moving our build environment to maven.
>
> I'd encourage you to look at NMaven:
> http://incubator.apache.org/nmaven/
>
> I don't use it myself, but I know others are using it successfully
> with their dot-net projects.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>



      

Reply via email to