>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 dont 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 iot goes on with my maven build :-(.
Is there any way I can catch the failure of external script ?
Thanks,
Petr