ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oystein Aadland" <ivy_listu...@lookoutpoint.org>
Subject Problem with transitive dependencies
Date Thu, 21 Jun 2007 08:44:36 GMT
Hi

I'm trying to upgrade to version 1.4.1 og ivy from version 1.1. Yes the
upgrade is way overdue. Anyway I have this problem with transitive
dependeincies.

I have a module A that uses module B.
Module B uses a build konfiguration of module C
Module A uses a build konfiguration og module C and a runtime configuration
of module B

Module B downloads explisit jars from C depending on configuration.

When I resolve A in build configuration I only get the explisit defined
runtime jars that B defines for module C.

Here are snippets of the ivy files.

Module A:
...
<dependencies>
  <dependency org="myorg" name="B" rev="1.6" conf="build->runtime" />
  <dependency org="myorg" name="C" rev="1.10" conf="build,runtime->default"
/>
</dependencies>
...

Module B
...
<configurations>
    <conf name="build" visibility="private"/>
    <conf name="runtime"/>
</configurations>
<dependencies>
  <dependency org="myorg" name="C" rev="1.10" conf="build,runtime->default">
      <artifact name="art1" type="jar" conf="runtime"/>
      <artifact name="art2" type="jar" conf="runtime"/>
      <artifact name="art3" type="jar" conf="runtime"/>
  </dependency>
</dependencies>
...

Module C
...
<publications>
        <artifact name="art1" type="jar" conf="default"/>
        <artifact name="art2" type="jar" conf="default"/>
        <artifact name="art3" type="jar" conf="default"/>
        <artifact name="art4" type="jar" conf="default"/>
</publications>
...


So when I resolve Module B I get art1.jar, art2.jar and art3.jar from module
C but not art4.jar

Can anyone please tell med what I'm doing wrong? This worked fine in 1.1.

Please apologize if I have overlooked that this issue has been discussed
before, I have searched, but found nothing.

Thank you
Oystein

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message