Maven – Using Ant tasks with maven-antrun-plugin

maven-antrun-plugin allows maven user to add ant tasks in different maven life cycle phases. To use the maven-antrun-plugin, add the following text in the pom.xml.

<!-- Build Configuration -->
              <echo>Hello Maven</echo>

This is the output after running mvn initialize

[INFO] task-segment: [initialize]
[INFO] ------------------------------------------------------------------------
[INFO] [antrun:run]
[INFO] Executing tasks
     [echo] Hello Maven
[INFO] Executed tasks
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Dec 16 18:04:57 CST 2009
[INFO] Final Memory: 2M/7M
[INFO] ------------------------------------------------------------------------


Done =)


3 thoughts on “Maven – Using Ant tasks with maven-antrun-plugin”

  1. What is the setup for the antrun plugin?

    Do I add a patrh/jar to somewhere?

    I don’t see anything to download on the apache site?

    Thanks :?)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.