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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to