what is the diff between ANT and MAVEN?

Answers were Sorted based on User's Feedback



what is the diff between ANT and MAVEN?..

Answer / vijaya

Apache Ant
•Ant doesn't have formal conventions like a common project
directory structure or default behavior. You have to tell
Ant exactly where to find the source and where to put the
output. Informal conventions have emerged over time, but
they haven't been codified into the product.

•Ant is procedural. You have to tell Ant exactly what to do
and when to do it. You have to tell it to compile, then
copy, then compress.

•Ant doesn't have a lifecycle. You have to define goals and
goal dependencies. You have to attach a sequence of tasks
to each goal manually.

Apache Maven
•Maven has conventions. It knows where your source code is
because you followed the convention. Maven's Compiler
plugin put the bytecode in target/classes, and it produces
a JAR file in target.

•Maven is declarative. All you had to do was create a
pom.xml file and put your source in the default directory.
Maven took care of the rest.

•Maven has a lifecycle which was invoked when you executed
mvn install. This command told Maven to execute a series of
sequential lifecycle phases until it reached the install
lifecycle phase. As a side-effect of this journey through
the lifecycle, Maven executed a number of default plugin
goals which did things like compile and create a JAR.

Is This Answer Correct ?    45 Yes 6 No

what is the diff between ANT and MAVEN?..

Answer / sethu

Dependency management in ant is nightmare. One should know complete knowledge(or depending on Dev. Team) to build a classpath. Maven solves all dependency issues itself via inheritence.

Versioning of artifacts in Ant nearly not possible(unless managing it independently). Maven by default does it.

Is This Answer Correct ?    8 Yes 2 No

Post New Answer

More Scripts AllOther Interview Questions

what is the difference between the start_form and open_form

1 Answers   IBM, TCS,


please send the scrpit driver program

1 Answers  


Someone who protect my excel file, m using ms office 2007 and windows 7 operating system, pls help me, how can i unprotect sheet

0 Answers  


I Am Planning to Write ISTQB foundation level Ceritification of inida. can Any Body let me know how to prepare for it & Any Study material can you provide or Any other E-books i should need to Study. Please Mail to me ajaybe_2004@yahoo.co.in THnaks in advance Ajay

0 Answers  


what is Eventflow.?

1 Answers  






I have deducted tds on pay slip for employees ist month tell me how to deposit this amt to govt. by bank or any form is available fill the same and deposit the govt. department. Pls explain me which form to be used for deposit the same with due date.

0 Answers  


why do u need an ANT?

0 Answers  


In sap script, created 1 form but when its went to production system , client want some changes in 1 (ex - addrss) window, what we will do?

0 Answers  


In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?

1 Answers   Nous,


i a had secured second class in tenth and twelth and i secured first claas.can i apply for job

1 Answers   IBM,


Would you tell me that what is test script? and how to write it? are there some templates?

0 Answers  


can I name the build.xml with any name? if so how can I invoke ?

0 Answers  


Categories