ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mitch Gitman <mgit...@gmail.com>
Subject Re: how to overriding downloading of dependent jars
Date Thu, 25 Nov 2010 18:00:54 GMT
You can specify transitive="false" on a dependency. Alternatively, you can
specify transitive="false" on a conf such that all the dependencies that are
depended upon via that conf will not be resolved transitively.

By the way, it's better to think of any Ivy module not literally as a JAR
but truly as a module, even if the module is just publishing that particular
JAR. The JAR is just a particular artifact published in that module; it's an
implementation detail. The module concept provides an abstraction layer. So
think name="name-of-module".

On Thu, Nov 25, 2010 at 9:28 AM, Dale Herrig <dale.herrig@osi.com> wrote:

> Is there a way when downloading a jar specified in  ivy.xml to force that
> jar to be downloaded "without" downloading any of the dependent jars, for
> example:
>
> <dependencies>
>
>     <dependency org="org.apache.something" name="name-of-jar" rev="1.0.0"
>  dependent="false"  />
>
> </dependencies>
>
> where dependent = false  do not download any dependent jars
>         dependent = true (default) download dependent jars also
>
>
> Thanks in advance or any help on this or what work-arounds there might be.
>

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