<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<configuration>
<!--tasks unless="maven.test.skip">
<echo message="To skip me, just call mvn -Dmaven.test.skip=true"/>
</tasks-->
<tasks>
<taskdef
resource="net/sf/antcontrib/antcontrib.properties"
classpathref="maven.plugin.classpath"/>
<delete file="$
/deploy/$
.war"/>
<delete dir="$
/deploy/$
.war"/>
<if>
<isset property="unpacked"/>
<then>
<mkdir dir="$
/deploy/$
.war"/>
<copy todir="$
/deploy/$
.war">
<fileset dir="$
/$
"/>
</copy>
</then>
<else>
<copy todir="$
/deploy">
<fileset dir="$
"
includes="$
.war"/>
</copy>
</else>
</if>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b3</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-nodeps</artifactId>
<version>1.6.5</version>
</dependency>
</dependencies>
</plugin>
