Skip navigation.

install

Installs a module and all its dependencies in a resolver. since 1.3

The module to install should be available in a resolver, and will be installed in another resolver which should support publish.

This is particularly useful for users who only have a private repository, and want to benefit from public repositories from time to time. In this case, when a module is missing in the private repository, a call to install let download the module from a public repository not usually used for dependency resolution, and install it and its dependencies in the private repository.

For more details about this task and its usage see the build repository tutorial

Attribute Description Required
from the name of the resolver in which the module must be found Yes
to the name of the resolver in which the module must be installed Yes
organisation the name of the organisation of the module to install Yes
module the name of the module to install Yes
revision the revision of the module to install Yes
validate true to force ivy files validation against ivy.xsd, false to force no validation No. Defaults to default ivy value (as configured in configuration file)
overwrite true to override modules already present in the destination resolver, false otherwise No, defaults to false
transitive true to install the module and all its transitive dependencies, false to install only the module No, defaults to false
matcher the name of the matcher to use to find the modules to install No, defaults to exact

Examples

<ivy:install organisation="apache" module="commons-lang" revision="2.0" from="ivyrep" to="myfsresolver"/>

Installs the module commons-lang from apache in revision 2.0 in the resolver myfsresolver. The module is found in the resolver named 'ivyrep'.