ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From loteq <>
Subject Redefining shared resolver to artifactory does not pull dependencies
Date Wed, 06 May 2009 11:08:51 GMT


I am trying to set up the famed enterprise repository.

This is how I wold like to acheiev it. 

I disable the public resolver (pointing to an empty local directory)
I change the definition of the shared resolver in this way:

    <url name="shared" m2compatible="true">

When I call resolve, ivy does find the top level artifacts, and retrieve
retrieves them. (Artifactory proxies the remote repositories). But the
dependencies to those artifacts are not pulled.

Example ivy.xml of spring-jdbc:

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="1.0">
	<info organisation="org.springframework"
		<conf name="default" visibility="public"/>
		<artifact name="spring-jdbc" type="jar" ext="jar" conf="default"/>

However, if I change the shared resolver to this:

        <ibiblio name="shared" m2compatible="true"/>

Then it will pull the dependencies:
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="1.0" xmlns:m="">
	<info organisation="org.springframework"
		<license name="The Apache Software License, Version 2.0"
url="" />
		<description homepage="">
		Spring Framework: JDBC
		<conf name="default" visibility="public" description="runtime dependencies
and master artifact can be used with this conf" extends="runtime,master"/>
		<conf name="master" visibility="public" description="contains only the
artifact published by this module itself, with no transitive dependencies"/>
		<conf name="compile" visibility="public" description="this is the default
scope, used if none is specified. Compile dependencies are available in all
		<conf name="provided" visibility="public" description="this is much like
compile, but indicates you expect the JDK or a container to provide it. It
is only available on the compilation classpath, and is not transitive."/>
		<conf name="runtime" visibility="public" description="this scope indicates
that the dependency is not required for compilation, but is for execution.
It is in the runtime and test classpaths, but not the compile classpath."
		<conf name="test" visibility="private" description="this scope indicates
that the dependency is not required for normal use of the application, and
is only available for the test compilation and execution phases."
		<conf name="system" visibility="public" description="this scope is similar
to provided except that you have to provide the JAR which contains it
explicitly. The artifact is always available and is not looked up in a
		<conf name="sources" visibility="public" description="this configuration
contains the source artifact of this module, if any."/>
		<conf name="javadoc" visibility="public" description="this configuration
contains the javadoc artifact of this module, if any."/>
		<conf name="optional" visibility="public" description="contains all
optional dependencies"/>
		<artifact name="spring-jdbc" type="jar" ext="jar" conf="master"/>
		<artifact name="spring-jdbc" type="source" ext="jar" conf="sources"
		<dependency org="c3p0" name="c3p0" rev="" force="true"
		<dependency org="commons-dbcp" name="commons-dbcp" rev="1.2.2"
force="true" conf="optional->compile(*),master(*)"/>
		<dependency org="commons-logging" name="commons-logging" rev="1.1.1"
force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
		<dependency org="jotm" name="jotm" rev="2.0.10" force="true"
		<dependency org="org.springframework" name="spring-beans" rev="2.5.6"
force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
		<dependency org="org.springframework" name="spring-context" rev="2.5.6"
force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
		<dependency org="org.springframework" name="spring-core" rev="2.5.6"
force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
		<dependency org="org.springframework" name="spring-tx" rev="2.5.6"
force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>

Is there something missing to my setup? Did I misunderstand the usage of

Any help is appreciated.


View this message in context:
Sent from the ivy-user mailing list archive at

View raw message