MAVEN | ANT | |
1 | It is mainly a project management tool. Included build, documentation, reporting | It is mainly a build tool. |
2 | Maven plugins are reusable. | ANT scripts are not reusable |
3 | Maven has a life cycle | ANT has No life cycle |
4 | Maven 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. |
5 | Maven 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. |