Using Maven Antlib
The Maven project has produced a library of Ant tasks (currently maven-artifact-ant-2.0.4-dep.jar) that allows your Ant builds to utilise Maven’s artifact handling features.
- Dependency management – including transitive dependencies, scope recognition and SNAPSHOT handling
- Artifact deployment – file and SSH based deployment to a Maven repository
- POM processing – for reading a Maven 2.0 pom.xml file
For more information see: http://maven.apache.org/ant-tasks.html