ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: Transitive dependencies
Date Mon, 16 Jul 2007 09:34:53 GMT
Based on the files you provided, the problem might be only a module
configuration mapping problem. Indeed your module depend on base with the
following conf mapping:
distrib->default;test->default

This means that you require the default configuration of base in both your
distrib and test confs (BTW it could have been written like this
"distrib,test->default")

But in the base module, the only dependency you have written is mapped in
the test configuration only (conf mapping = test->default). So you have no
transitive dependency in its 'default' conf. Try changing your conf mapping
to 'distrib,test->test' for instance, and see if it works.

HTH,

Xavier

On 7/13/07, MbX <martial.braem@ap2.be> wrote:
>
>
> I've included the different XML files:
>
> ivyconf.xml
>
> <ivyconf>
>   <conf defaultResolver="chain-example" />
>   <resolvers>
>     <chain name="chain-example">
>
>       <!--
>       A pattern for publishing!!!
>       -->
>       <filesystem name="libraries">
>         <ivy
> pattern="${repository.dir}/app/[module]/[revision]/[module]-ivy.xml" />
>         <artifact
> pattern="${repository.dir}/app/[module]/[revision]/[artifact].jar" />
>       </filesystem>
>
>       <!--
>       The find pattern is: <lib name>/<version>/<lib-name>.jar
>       -->
>       <filesystem name="libraries">
>         <ivy
> pattern="${repository.dir}/[module]/[revision]/[module]-ivy.xml" />
>         <artifact
> pattern="${repository.dir}/[module]/[revision]/[artifact].jar" />
>       </filesystem>
>
>       <!--
>       The find pattern is: <lib name>-<version>.jar
>       -->
>       <filesystem name="libraries">
>         <ivy
> pattern="${repository.dir}/[module]/[module]-[revision]-ivy.xml" />
>         <artifact
> pattern="${repository.dir}/[module]/[artifact]-[revision].jar" />
>       </filesystem>
>
>       <!--
>       Especially for aspectj
>       -->
>       <filesystem name="libraries">
>         <ivy
> pattern="${repository.dir}/[module]/[revision]/[module]-ivy.xml" />
>         <artifact
> pattern="${repository.dir}/[module]/[revision]/lib/[artifact]rt.jar" />
>       </filesystem>
>
>       <!--
>       Fallback, will not work for now since there are no Ivy files there
>       -->
>       <ibiblio name="ibiblio" />
>     </chain>
>   </resolvers>
>
>
> ivy.xml (used in the build file)
>
> <ivy-module version="1.0">
>     <info organisation="xxx" module="nnn">
>         <description>
>             nnn
>         </description>
>     </info>
>
>     <configurations>
>         <conf name="default" description="xxx"/>
>         <conf name="distrib" extends="default" description="xxx"/>
>         <conf name="test" extends="default" description="xxx"/>
>     </configurations>
>
>     <publications>
>         <artifact name="${ant.project.name}" type="jar" conf="distrib"
> ext="jar"/>
>         <artifact name="${ant.project.name}-test" type="jar" conf="test"
> ext="jar"/>
>     </publications>
>
>     <dependencies>
>         <dependency org="xxx" name="base" rev="0.0"
> conf="distrib->default;test->default"/>
>         ...
>     </dependencies>
> </ivy-module>
>
>
> base-ivy.xml (transitive dependencies)
>
> <ivy-module version="1.0">
>     <info organisation="xxx" module="base" revision="0.0" status="release"
> publication="20070709222143">
>         <description>
>             The base library
>         </description>
>     </info>
>
>     <configurations>
>         <conf name="default" description="xxx"/>
>         <conf name="distrib" extends="default" description="xxx"/>
>         <conf name="test" extends="default" description="xxx"/>
>     </configurations>
>
>     <publications>
>         <artifact name="base" type="jar" conf="distrib" ext="jar"/>
>         <artifact name="base-test" type="jar" conf="test" ext="jar"/>
>     </publications>
>
>     <dependencies>
>         <dependency org="apache" name="log4j" rev="1.2.13"
> conf="test->default"/>
>         ...
>     </dependencies>
> </ivy-module>
>
> --
> View this message in context:
> http://www.nabble.com/Transitive-dependencies-tf4069325.html#a11582286
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>


-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://incubator.apache.org/ivy/
http://www.xoocode.org/

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