You need specify the configuration tag as a child tag of the plugin tag:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<configuration>
<tasks>
<echo message="test"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<configuration>
<tasks>
<echo message="test"/>
</tasks>
</configuration>
</plugin>
The strange thing is that one of them is used when running from the command
line and the other one if you run it via a lifecycle phase. If there is
anybody who knows how to avoid this duplication, please let me know!
regards,
Wim
2010/7/12 QkI <[email protected]>
>
> This doesn't work.
>
> My configuration:
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <version>1.4</version>
> <executions>
> <execution>
> <configuration>
> <tasks>
> <echo message="test"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> and mvn antrun:run doesn't produce any result on the screen.
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Run-external-tasks-using-maven-tp1046324p1046344.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>