Maven with Ant task

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Maven with Ant task

This post has NOT been accepted by the mailing list yet.
Good day,

I would like to perform some ant task after the war file being generated.

with following script, if i change the phase to different value like "Install" , it will not prompt error, but i want the ant script run once the war file being generated

<nabble_embed> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <executions> <execution> <phase>compile</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <!-- Execute an ant task within maven --> <echo message="Hello World from pom.xml" /> <!-- Execute an ant task in an external build.xml file. It assumes the file is called build.xml and is located in the same directory as the pom.xml file. The target in the external file is called default. --> <ant target="default" /> </target> </configuration> </execution> </executions> </plugin> </plugins> </build> </nabble_embed>

When i try to save it with value "compile", it prompt me error "Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.7:run (execution: default, phase: compile)" in eclipse Juno.

appreciated if anyone can shed some light for this and thanks for your tim