You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Greg Evetts <ge...@nexatech.com> on 2009/07/01 17:14:59 UTC
Re: antrun does not do anything
I tried using antrun recently, too. I have a different problem, but have
gotten a little further than this.
Do you have your <ant> snippet in the <plugin> block? Mine looks like
this (some content omitted for clarity):
<plugin>
<group />
<artifactId />
<version />
<executions>
<execution>
<id />
<phase />
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<ant antfile="[path]/my-build.xml">
<target name="my-task" />
</ant>
</tasks>
<configuration>
</execution>
<executions>
</plugin>
-Greg
On Tue, 2009-06-30 at 14:25 -0500, Qiner Yang wrote:
> attached are the pom.xml and build.xml files.
> run ant, generates the abc2 folder, but
> run mvn antrun:run, generates nothing.
>
> ----- Original Message -----
> From: Qiner Yang
> To: users@maven.apache.org
> Sent: Tuesday, June 30, 2009 11:36 AM
> Subject: 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
>
>
> ___________________________________________________________________________
>
> Inbound Email has been scanned by Nexa Technologies Email Security
> Systems.
> ___________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org