You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Qiner Yang <qi...@healthfusion.com> on 2009/06/30 20:36:10 UTC
help: antrun does not do anything
Because some functions not available or not easily accomplishable in maven, so I turned to the antrun in maven. But I can never get the antrun working, please help me out.
I read the Maven AntRun Plugnin page, http://maven.apache.org/plugins/maven-antrun-plugin/, and followed all the instructions and tried all the examples in the examples section, http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html. But nothing is generated from the antrun. I tried a very simple ant command, <mkdir dir="abc" />, or an ant task
<ant antfile="build.xml">
<target name="test"/>
</ant>
between the maven <tasks>. The ant "test target" is to make a directory, which works fine when issuing "ant test", but nothing happen in mvn. Strange, the mvn command shows execution successful, see below:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building RTJDBC
[INFO] task-segment: [antrun:run]
[INFO] ------------------------------------------------------------------------
[INFO] [antrun:run]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Jun 30 11:04:56 PDT 2009
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------
I tried removing the antrun plugin from the pom.xml, the mvn antrun output is exactly the same as above. Got confused.
thanks for any help.
Qiner