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

How can you convert QTP 8.2 scripts to QTP 9.2. Please give some inputs ASAP.

0 Answers   MagnaQuest,


Need a batch file or VB script to delete old (more than 90datys) roaming profiles

0 Answers  


Difference between the SAP MDM vs IBM MDM in approach, the tools used , ease in handling/implementing.

0 Answers   Wipro,


a="10.20.30.1" replace 1 with 45 in python using reg ex

0 Answers   HCL,


what will this do? function show_alert value="Show User" eval("x=10; y=20; document.write(x*y)");

1 Answers  






I have installed QTP version 9.0. I have installed Mozilla firefox version 2.0. But QTP "Record and Run settings" in WEB tab shows FIREFOX 1.5 in drop down to run session begins. So QTP does not record anything which I type in firefox. How can i recognise firefox 2.0 and how can i update browser version in QTP?

0 Answers  


what is difference between AS2 and AS3.?

6 Answers  


please send the scrpit driver program

1 Answers  


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

0 Answers  


How can we return a value from User Defined Function ? For Eg. we have 2 functions. In Fun1 i am getting 2 values (a,b) and i am addding those 2 and storing in to another var (c). Now i want to pass that var(c) to another function (fun2). What will be the script?

6 Answers   Nous,


how do u define in ur build.xml If I need to execute a task before executing my task?

0 Answers  


How to Communicate with JavaScript?

1 Answers  


Categories