What are the minimum steps I should follow to replace Ant with Maven?
+4
A:
- Set up your project according to the standard directory layout.
- Create a minimal pom.xml with groupId, artifactId and version.
- Add your dependencies to the pom.xml
You should now be able to build a simple project, run the tests and package it.
Kjetil Ødegaard
2009-03-06 13:45:35
+4
A:
Anecdote: Once you are in Maven, the reverse trip (though why would you ever go back!) is so simple:
mvn ant:ant
generates functionally equivalent ant scripts. Now if only an Ant->Maven generator existed.
Matthew McCullough
2009-03-06 14:36:12
+1
A:
See these two posts for details:
Brian Fox
2009-04-19 02:02:29
A:
I have built an automated script to migrate Ant builds to Maven. You can find more information here:
http://erichauser.net/2009/10/26/ant2maven-easy-migration-from-ant-to-maven-with-nexus/
There is a link to the GitHub repository at the bottom which contains the script.
Eric Hauser
2009-10-27 12:59:42