The maven-antrun-plugin has only one goal, run.
This allows Maven 2 to run Ant tasks. To do so, there must be an existing project and maven-antrun-plugin must have its tag configured (although it would still execute without the tag, it would not do anything). Below is the template for maven-antrun-plugin's pom.xml.
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>install</phase>
<configuration>
<tasks>
<copy file="target/testRomain.war"
todir="/home/user/mybox/jboss-epp-5.0/jboss-as/server/default/deploy" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>install</phase>
<configuration>
<tasks>
<copy file="target/testRomain.war"
todir="/home/user/mybox/jboss-epp-5.0/jboss-as/server/default/deploy" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
No comments:
Post a Comment