ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lemine youssef <youssef.m-lem...@nereide.biz>
Subject transitive dependencies fails
Date Tue, 29 Dec 2009 19:42:44 GMT
Hi all;

When I try to resolve an artifact B which depends on artifact A it fails
because the "latest.integration" of B dpends on a non existing revision  
of A.

I have two locals repositories and use a chain resolver like this
<ivysettings>
    <settings defaultResolver="test"/>   
    <caches defaultCacheDir="${ivy.cache.dir}/ivy-cache">
        <cache name="mycache"
           basedir="${ivy.cache.dir}/repository"
           ivyPattern="ivy.xml"
           artifactPattern="[artifact]-[revision].jar"
           lockStrategy="no-lock"
           defaultTTL="5s">
        </cache>
    </caches>
    <resolvers>
        <chain name="test">
            <filesystem name="company">
                  <ivy 
pattern="${ivy-home-repo}/repository2/[module]/[revision]/ivy.xml" />
                  <artifact 
pattern="${ivy-home-repo}/repository2/[module]/[revision]/[artifact]-[revision].jar" 
/>
            </filesystem>
            <filesystem name="woekspace">
                    <ivy 
pattern="${ivy-home-repo}/repository1/[module]/[revision]/ivy.xml"/>
                    <artifact 
pattern="${ivy-home-repo}/repository1/[module]/[revision]/[artifact]-[revision].jar"/>
                </filesystem>
        </chain>
    </resolvers>
    <modules>
                <module organisation="org.addons" name="addonA" 
resolver="internal" />
        </modules>
</ivysettings>

repository 1: contains only one revision of the module addonA

<ivy-module version="2.0">
  <info organization="org.addons" module="addonA" revision="1.0"/>
  <dependencies>
  </dependencies>
</ivy-module>

repository 2: contains many revisions of the module addonB

========================Version 1.0=====================================
<ivy-module version="2.0">
  <info organization="org.addons" module="addonB" revision="1.0"/>
  <dependencies>
    <dependency org="org.addons" name="addonA" transitive="true" 
rev="[1,2["/>
  </dependencies>
</ivy-module>

========================Version 2.0=====================================
<ivy-module version="2.0">
  <info organization="org.addons" module="addonB" revision="2.0"/>
  <dependencies>
    <dependency org="org.addons" name="addonA" transitive="true" 
rev="[2,3["/>
  </dependencies>
</ivy-module>
========================Version 3.0=====================================
<ivy-module version="2.0">
  <info organization="org.addons" module="addonB" revision="3.0"/>
  <dependencies>
    <dependency org="org.addons" name="addonA" transitive="true" 
rev="[3,)"/>
  </dependencies>
</ivy-module>

Mime
View raw message