Sorry, here is the debug info
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run'
-->
[DEBUG] (f) artifacts = [ant:ant-antlr:jar:1.6.5:compile, ant:ant:jar:1.6.5:ru
ntime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven:maven-project:jar:2.
0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime]
[DEBUG] (f) project = [EMAIL PROTECTED]
[DEBUG] (f) tasks =
[DEBUG] -- end configuration --
[INFO] [antrun:run]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO]
-----Original Message-----
From: Nagesh, Srinivas (IS Consultant)
Sent: Tuesday, April 03, 2007 5:55 PM
To: Maven Users List
Subject: RE: Call Ant Tasks from Maven2
I tried the following
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-antlr</artifactId>
<version>1.6.5</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>install</phase>
<configuration>
<tasks>
<echo> Hello World </echo>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
And ran the command "mvn antrun:run"
The result in the console was
[INFO] [antrun:run]
[INFO] Executing tasks
[INFO] Executed tasks
Still not printing hello world
Thanks
Sri
-----Original Message-----
From: Raphaël Piéroni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 03, 2007 11:48 AM
To: Maven Users List
Subject: Re: Call Ant Tasks from Maven2
Hi,
Here what i have (And it works fine using maven 2.0.5)
Raphaël
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-antlr</artifactId>
<version>1.6.5</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>archetype-test</id>
<phase>process-test-resources</phase>
<configuration>
<tasks>
<mkdir dir="${basedir}/somedir/"></mkdir>
<jar
destfile="${basedir}/somedir/some.jar"
basedir="${basedir}/src/test/somedir/"></jar>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
2007/4/3, Nagesh, Srinivas (IS Consultant) <[EMAIL PROTECTED]>:
> Hey,
>
> I am using Maven2 to call an ant task but somehow I don't see the task
> doing its job here. I am a newbie to these build tools.
>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <phase>install</phase>
> <configuration>
> <tasks>
> <echo>Hello World</echo>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> I don't see "Hello World" being printed on the console when I run "mvn
> -e antrun:run". Secondly this plug-in doesn't get executed as part of
> the default goal "install" that I have specified in the POM.
>
> Any thoughts?
>
> Thanks
>
> Sri
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]