Skip navigation.

Building a repository

With the install ant task you are given the possibility to copy ivy descriptors and artifacts found from a resolver and publish them into another resolver.

This tutorial will show you how to build your own clean enterprise repository of ivy descriptors and modules artifacts.
We will first use some basic ivy configuration files to show how it works, and then we will use advanced features like namespaces to build a real enterprise repository.

The project used

The project that we will use is quite simple.
It is compouned of an ant build file, and some ivy conf files.

Here are the accessible target that we will use :

Z:\ivy-repository>ant -p
Buildfile: build.xml

Main targets:

 advanced                                 --> retrieve files from public repositories (ivyrep, ibiblio, ...) using namespaces
 basic                                    --> retrieve files from well formatted ivy repositories
 basic-deps                               --> retrieve files from well formatted ivy repositories with dependencies
 clean-cache                              --> clean the cache
 clean-repo                               --> clean the destination repository
 commons-lang-1-0-ibiblio-no-namespace    --> retrieve commons-lang 1.0 from ibiblio maven using no namespaces
 commons-lang-1-0-ibiblio-with-namespace  --> retrieve commons-lang 1.0 from ibiblio maven using namespaces
 maven1                                   --> retrieve commons-lang 1.0 from maven1 repo using namespaces
 maven2                                   --> retrieve files from maven2 repo using namespaces
Default target: basic




The project is accessible in the sources of Ivy into : IVY_HOME/src/example/build-a-ivy-repository