Maven Ant Tasks

Note: This component is retired. It is no longer maintained. Please use Maven Artifact Resolver Ant Tasks instead.

The Maven Ant Tasks allow several of Maven's artifact handling features to be used from within an Ant build. These include:

  • Dependency management - including transitive dependencies, scope recognition and SNAPSHOT handling
  • Artifact deployment - deployment to a Maven repository (file integrated, other with extensions)
  • POM processing - for reading and writing a Maven 2 pom.xml file

The Ant tasks can be downloaded from the download page.

System Requirements

JDK JDK version 1.5 or above is required (This is due to dependencies on internal Maven libraries.)
Ant Ant version 1.6.x, 1.7.x or 1.8.x is required


General instructions for installing and using the Maven Ant Tasks can be found on the installation page and the usage page respectively. Some more specific use cases are described in the examples given below. Last but not least, users occasionally contribute additional examples, tips or errata to the project's wiki page.


Several common usage examples are provided for the following tasks:

Getting Help

In case you still have questions regarding the Maven Ant Tasks usage, please have a look at the FAQ and feel free to contact the user mailing list. The posts to the mailing list are archived and could already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching the mail archive.

If you feel like the Ant tasks are missing a feature or have a defect, you can fill a feature request or bug report in our issue tracker. When creating a new issue, please provide a comprehensive description of your concern. Especially for fixing bugs it is crucial that the developers can reproduce your problem. For this reason, entire debug logs, Ant build scripts or most preferably little demo projects attached to the issue are very much appreciated. Of course, patches are welcome, too. Contributors can check out the project from our source repository and will find supplementary information in the guide to helping with Maven.

For more information on the Maven functionality behind the Ant tasks, try the following links: