ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Griffith, Michael *" <>
Subject RE: Noob Question, Transitive Dependencies?
Date Thu, 18 Dec 2008 20:50:22 GMT

Thanks for the reply. It seems as though I still have to go through and
add each jar as an artifact. I'm not sure what the distinction is
between a publication and a dependency...


-----Original Message-----
From: Mitch Gitman [] 
Sent: Thursday, December 18, 2008 2:45 PM
Subject: Re: Noob Question, Transitive Dependencies?

If you're putting those other JARs in the same location in your Ivy
repository, then the easiest approach is to also make them publications
in the ivy.xml in that location. Something like:

        <artifact name="hibernate" type="jar" />
        <artifact name="javassist" type="jar" />
        <artifact name="ejb3-persistence" type="jar" /> ...
        <artifact name="hibernate-src" type="source" ext="zip"/>

Note that when your dependency specifies name="hibernate"--it's
specifying the *module*, not the actual artifact. So that
hibernate/hibernate dependency will pick up not just the hibernate JAR
but also the other ones, assuming you're not doing any filtering out of
certain artifacts based on configuration.

On Thu, Dec 18, 2008 at 12:10 PM, Griffith, Michael * <> wrote:

> Please forgive me if this message is posted to the mail list twice, I 
> did not receive any confirmation when I mailed it previously.
> Hi everyone, I've been looking over the documentation, and something 
> basic is eluding me. I have a dependency setup for a library say 
> Hibernate.  The dependency is defined as:
> <dependency org="hibernate" name="hibernate" rev="3.2.6"/>
> The resolver is chained to first look in a local repository hosted by 
> an Apache server, then ibiblio.  I have a directory in Apache Ivy 
> repository for hibernate and it contains the hibernate-3.2.6-jar file,

> which is resolved just fine, but how do I pull in other jars that 
> reside in the same directory that hibernate depends on -- (such as 
> javassist.jar or ejb3-persistence.jar) without explicitly listing each

> jar file as a dependency?
> There must be some way to do this, and I am sure it is probably 
> documented, but I can't find it.  Can anyone help me out with a simple

> answer and short example?
> Any help would be much appreciated.
> Thanks in advance,
> Michael Griffith

View raw message