Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where do you put ivysettings.xml?

Tags:

ant

ivy

I'm trying to learn how to use ivy and would like to setup a local repository of the .jar files I've downloaded.

Where do you put the ivysettings.xml file? Does it go in the ant library directory?

like image 254
Jason S Avatar asked Jul 28 '09 16:07

Jason S


People also ask

What is Ivysettings xml?

The ivysettings. xml file holds a chain of Ivy resolvers for both regular artifacts and Ivy module files. These are used to resolve and publish (i.e. deploy) artifacts.

What is an Ivy file?

Ivy files are XML files, usually called ivy. xml, containing the description of the dependencies of a module, its published artifacts and its configurations.

What does Ivy resolve do?

Resolve task is used to resolve dependencies described in ivy. xml, download and put them in ivy cache.

What is Ivy dependency management?

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.


2 Answers

If you'll allow me to clarify, the ivysettings.xml is the configuration of your development environment as a whole. It is not related to the repository items themselves. Generally speaking, ivysettings.xml should sit alongside your main build.xml, so that when you put

<ivy:settings file="ivysettings.xml"/>

in your build.xml, it just finds it in the current directory.

This file is completely distinct from the ivy.xml files that describe the various modules in your repository. These sit alongside the published artifacts in the repo.

like image 181
skaffman Avatar answered Dec 21 '22 21:12

skaffman


You can place your ivysettings.xml file anywhere you want and you simply reference it in your Ant script with:

<ivy:settings file="ivysettings.xml"/>

If you are developing several projects, you will notice that you typically use the same ivysettings.xml file everywhere and there's no point in copy/pasting this file manually.

What I do is define one ivysettings.xml file that is checked out by all my other projects using svn:externals.

like image 45
Vladimir Avatar answered Dec 21 '22 23:12

Vladimir