ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <>
Subject Re: using ivy iwth artifactory
Date Mon, 13 Dec 2010 23:11:37 GMT
Could it be that your "jpa-generic-dao" module has a dependency on the "test" 
configuration of spring-test?
That will cause this error.


----- Original Message ----
From: James Carr <>
To: "" <>
Sent: Mon, December 13, 2010 8:33:38 PM
Subject: using ivy iwth artifactory

Hi all,

I'm currently trying to resolve our ivy dependencies using artifactory so we can 
take advantage of the existing maven repositories and have ran into a bit of a 

When I try to resolve test dependencies I get the following:

unresolved dependency: org.springframework#spring-test;3.0.5.RELEASE: 
configuration not public in org.springframework#spring-test;3.0.5.RELEASE: 
'test'. It was required from myorg#jpa-generic-dao;working@M-H5ZZKN1 test

This is my configuration file:

<configurations >

  <!-- Maven styled 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 
  <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"
                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 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 

And my Ivy Settings:

<?xml version="1.0" encoding="UTF-8"?>
                <settings defaultResolver="artifactory" 
defaultCache="c:/ivy-cache" />
                                <ibiblio name="artifactory" m2compatible="true" 
root="http://cfxbuild:8081/artifactory/repo" />

Everything seems to resolve fine, it's just the damn test configuration that 
gripes all the time. I have tried setting the visibility to public as well as 
making it not extend runtime and it still fails to resolve. Any help would be 
much appreciated. :)



View raw message