Hm... so the package resolver sounds like a nice way to cache downloaded zips and unzip the contents into the ivy cache in one step (albeit a heavy step, which is fine.)
But... how does this address the meat of my problem: I want all the jars in the zip to end up as dependencies for my conf such that my project can be built with Ant and Eclipse IvyDE. If I have to list all 102 dependencies one at a time in dependency elements, then I do not need all of this unzipping and I can do it the 'classic' way... arg. Thoughts? Gary On Fri, Apr 25, 2014 at 11:27 AM, <pie....@gmail.com> wrote: > Could you use the package resolver to fetch the dependency in a way that > you don't have to do any explicit manipulations after you have the > artifacts? > > http://ant.apache.org/ivy/history/latest-milestone/resolver/packager.html > > It would take some effort to define the package config. > > > Original Message > From: Gary Gregory > Sent: Friday, April 25, 2014 07:49 > To: ivy-user@ant.apache.org > Reply To: ivy-user@ant.apache.org > Subject: How do I add all jars in a zip as dependencies? > > Hi All: > > I am working on a project to embed Teiid (FOSS project from JBoss) in our > application. The embedded zip file for this project contains 103 jars > scattered in many directories. Adding the top level jars from this project > through the dependency element with 'transitive' set to truedoes not work > because some dependencies fail because some modules include variables like > "org.apache.accumulo#accumulo-core;${version.accumulo}" > > So instead I've created a trigger like this: > > <triggers> > <ant-call target="teiid-unzip" prefix="teiid-unzip" > event="post-download-artifact" filter="organization=org.jboss.teiid AND > module=teiid AND revision=${teiid.version} AND type=zip AND > status=successful"/> > </triggers> > > To unzip the file locally. Next up: how do I add all the jars as > dependencies? Is there a *.jar kind of call I can make/configure? > > Thank you, > Gary > > -- > E-Mail: garydgreg...@gmail.com | ggreg...@apache.org > Java Persistence with Hibernate, Second Edition< > http://www.manning.com/bauer3/> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > Spring Batch in Action <http://www.manning.com/templier/> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> Spring Batch in Action <http://www.manning.com/templier/> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory