Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is ivy? and how it is related to ant?

Tags:

java

ant

ivy

I have seen many ivy files in my application's build projects. What is Ivy, and its relation with ant?

like image 291
GuruKulki Avatar asked Jan 02 '10 19:01

GuruKulki


People also ask

How do you put ivy on an Ant?

To download them using Ivy, all you need is to run the Ant build file provided in the distribution. This will use Ivy itself to download the dependencies. Then you should see the Ivy optional dependencies in the lib directory, organized per configuration (see the ivy.

What is Ivy vs Maven?

Apache Maven is a software project management and comprehension tool, whereas Apache Ivy is only a dependency management tool, highly integrated with Apache Ant™, the popular build management tool.

How does Apache Ivy work?

When the dependency module has been found, its ivy file is downloaded to the ivy cache. Then ivy checks if the dependency module has dependencies, in which case it recursilvely traverses the graph of dependencies. All over this traversal, conflict management is done to prevent access to a module as soon as possible.


2 Answers

Ivy is an Ant extension for managing external libraries during the development process, giving you a way of adding them to your classpath, bundling them into your application build, etc.

There's some overlap with what Maven does, but Ivy is much more lightweight (and doesn't do as much).

like image 167
skaffman Avatar answered Sep 28 '22 08:09

skaffman


Ivy is a dependency manager -- it manages and controls the JAR files that your project depends on. If you don't have the JARs, it will pull them down for you by default (from the Maven 2 repository), which can make project setup a lot easier.

like image 32
Kaleb Brasee Avatar answered Sep 28 '22 07:09

Kaleb Brasee