ant-ivy-user mailing list archives

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

Hi,

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">
      <ivy
pattern="http://reposerver:8081/artifactory/repo/[module]/[revision]/ivy-[revision].xml"
/>
      <artifact
pattern="http://reposerver:8081/artifactory/repo1/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
/>
    </url>

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"
		module="spring-jdbc"
		revision="2.5.6"
		status="release"
		publication="20090506125302"
		default="true"
	/>
	<configurations>
		<conf name="default" visibility="public"/>
	</configurations>
	<publications>
		<artifact name="spring-jdbc" type="jar" ext="jar" conf="default"/>
	</publications>
</ivy-module>


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="http://ant.apache.org/ivy/maven">
	<info organisation="org.springframework"
		module="spring-jdbc"
		revision="2.5.6"
		status="release"
		publication="20081102024508"
	>
		<license name="The Apache Software License, Version 2.0"
url="http://www.apache.org/licenses/LICENSE-2.0.txt" />
		<description homepage="http://www.springframework.org">
		Spring Framework: JDBC
		</description>
	</info>
	<configurations>
		<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
classpaths."/>
		<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."
extends="compile"/>
		<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."
extends="runtime"/>
		<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
repository."/>
		<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"/>
	</configurations>
	<publications>
		<artifact name="spring-jdbc" type="jar" ext="jar" conf="master"/>
		<artifact name="spring-jdbc" type="source" ext="jar" conf="sources"
m:classifier="sources"/>
	</publications>
	<dependencies>
		<dependency org="c3p0" name="c3p0" rev="0.9.1.2" force="true"
conf="optional->compile(*),master(*)"/>
		<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"
conf="optional->compile(*),master(*)"/>
		<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(*)"/>
	</dependencies>
</ivy-module>


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

Any help is appreciated.

Thanks



-- 
View this message in context: http://www.nabble.com/Redefining-shared-resolver-to-artifactory-does-not-pull-dependencies-tp23404505p23404505.html
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message