You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Chinnij2ee <ar...@gmail.com> on 2009/08/13 12:04:36 UTC
Skipping ant tasks on mvn package
Hi,
I would like to know how to skip executing ant script on mvn package
my pom.xml looks like
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>test</id>
<phase>test</phase>
<configuration>
<tasks>
<ant antfile="build.xml">
<target name="MyAntTask"/>
</ant>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
--------
</plugin>
</plugins>
</build>
Any thoughts?
--
View this message in context: http://www.nabble.com/Skipping-ant-tasks-on-mvn-package-tp24952267p24952267.html
Sent from the Maven Developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Skipping ant tasks on mvn package
Posted by Chinnij2ee <ar...@gmail.com>.
I found the option<tasks unless="maven.test.skip"> in maven-antrun-plugin
version 1.2
Chinnij2ee wrote:
>
> Hi,
> I would like to know how to skip executing ant script on mvn package
>
> my pom.xml looks like
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>test</id>
> <phase>test</phase>
> <configuration>
> <tasks>
> <ant antfile="build.xml">
> <target name="MyAntTask"/>
> </ant>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
>
> --------
>
> </plugin>
> </plugins>
> </build>
>
> Any thoughts?
>
>
--
View this message in context: http://www.nabble.com/Skipping-ant-tasks-on-mvn-package-tp24952267p24953265.html
Sent from the Maven Developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org