You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Sebastian Hennebrueder <us...@laliluna.de> on 2008/08/19 11:58:06 UTC
Transitively resolve of jar and source problem
Hello,
my project has the following dependency:
<dependency org="net.sf" name="ehcache" rev="1.5.0"
conf="default->source,default">
</dependency>
I would expect to get ehcache jar, ehcache source and as ehcache depends
on commons-logging: commons-logging jar and commons-logging source
But the source for commons-logging is not retrieved. If I add a
dependency on the commons-logging directly with default->source,default
than the source is retrieved.
As I am new to ivy, I assume that it is my error. Could you give me some
directions?
Best Regards
Sebastian
PS: In my repository I have the following ivys for ehcache and
commons-logging
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven"
xmlns:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="net.sf" module="ehcache" revision="1.5.0"
status="release" publication="20080819113248">
<description>
Commons logging
</description>
</info>
<configurations defaultconfmapping="default">
<!-- is a minimal configuration -->
<conf name="default"/>
<conf name="source"/>
<conf name="javadoc"/>
</configurations>
<publications>
<artifact name="ehcache" type="jar" conf="default" ext="jar"/>
<artifact name="ehcache" type="source" conf="source" ext="jar"/>
<artifact name="ehcache" type="javadoc" conf="javadoc" ext="jar"/>
</publications>
<dependencies>
<dependency org="org.apache.commons" name="logging" rev="1.0.4">
<artifact name="commons-logging" type="jar" ext="jar"/>
<artifact name="commons-logging" type="source" ext="jar"
conf="source"/>
<artifact name="commons-logging" type="javadoc" ext="jar"
conf="javadoc"/>
</dependency>
</dependencies>
</ivy-module>
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven"
xmlns:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="org.apache.commons" module="logging"
revision="1.0.4" status="release" publication="20080818233054">
<description>
Commons logging
</description>
</info>
<configurations defaultconfmapping="default">
<!-- is a minimal configuration -->
<conf name="default"/>
<conf name="source"/>
<conf name="javadoc"/>
</configurations>
<publications>
<artifact name="commons-logging" type="jar" conf="default" ext="jar"/>
<artifact name="commons-logging" type="source" conf="source"
ext="jar"/>
<artifact name="commons-logging" type="javadoc" conf="javadoc"
ext="jar"/>
</publications>
</ivy-module>
Re: Transitively resolve of jar and source problem
Posted by Sebastian Hennebrueder <us...@laliluna.de>.
I made a mistake (of course) and solved it that way:
and changed the ehcache dependcy as follows:
<dependency org="org.apache.commons" name="logging" rev="1.0.4"
conf="default,source,javadoc">
<artifact name="commons-logging" type="jar" ext="jar" conf="default"/>
<artifact name="commons-logging" type="source" ext="jar"
conf="source"/>
<artifact name="commons-logging" type="javadoc" ext="jar"
conf="javadoc"/>
</dependency>
Best Regards
Sebastian Hennebrueder
http://www.laliluna.de