- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Difference between Ant and Maven.
Ant and maven both are build tools.They both can be used for compile, pulling dependence from repository and for creating war or ear files. Both are provided by the Apache.
Ant is a tool and it doesn't have formal conventions. If you are using Ant then you have to tell what to do in XML files therefore it can't be used in different types of project setup.
Maven is framework and it can also act as a dependency management tool. It is declarative build tool so everything we can define in the pom.xml.
Sr. No. | Key | Maven | Ant |
---|---|---|---|
1 | Basic | Maven is a build automation framework based on the concept of a project object model(pom) | Ant is a Java library and command line tool whose can be used to compile your code, fetching dependencies and for packaging |
2 | Tool/Framework | It is framework | It is a tool box. |
3 | Lifecycle | It has lifecycle. | It has no lifecycle . In ant each task is independent and we'll defined |
4. | Declarative/Procedural | It is declarative | It is procedural |
- Related Articles
- The Ant and the Cricket
- What is Maven in selenium?
- Ant Life Cycle
- What is maven in Java environment?
- Difference Between & and &&
- How To Install Apache Maven on Ubuntu
- Building an XCode application using Maven plugin (SAP)
- Difference between Voltage Drop and Potential Difference
- What happens when an ant bites?
- Difference between JCoClient and JCoDestination
- Difference between localhost and 127.0.0.1?
- Difference between Process and Thread
- Difference between Concurrency and Parallelism
- Difference between Bootstrap and AngularJS.
- Difference between C and C++.

Advertisements