SAGARFIVE

Tutorials

1.7 MAVEN vs ANT ?

MAVENANT
1It is mainly a project management tool.
Included build, documentation, reporting
It is mainly a build tool.
2Maven plugins are reusable.ANT scripts are not reusable
3Maven has a life cycleANT has No life cycle
4Maven is declarative
everything you define in the pom.xml file.
Ant is procedural, you need to provide information about what to do and when to do through code.
You need to provide order.
5Maven has a convention to place source code, compiled code etc. So we don’t need to provide information about the project structure in the pom.xml file.Ant doesn’t have formal conventions, so we need to provide information of the project structure in the build.xml file.