Hi Thanks! But that's not actually the question I asked. :-)
Paul Sent from my Archimedes A3000 -----Original Message----- From: Geoff Clitheroe <[email protected]> Date: Mon, 27 Jul 2009 09:29:07 To: <[email protected]> Subject: Re: conf = "default" Hi, you probably need to specifiy the configuration your project needs the dependency in e.g., compile->default or test->default or runtime->default etc. This lets you partition you library directory. Here is an old post with an example Ivy file and another message that Barry pointed out and found useful. http://mail-archives.apache.org/mod_mbox/ant-ivy-user/200906.mbox/browser http://markmail.org/message/7osmuf7nkneepykn With the error you mention I'd be pretty tempted to cleancache at some point as well. Cheers, Geoff On Sun, Jul 26, 2009 at 11:03 PM, Paul Grenyer<[email protected]> wrote: > Hi All > > I'm sure my question is probably answered somewhere in the > documentation, but I can't find it and can't get my head around what I > can find. So please take pity on me and help if you can. I'm > struggling to understand some aspects of the "conf" attribute of the > dependency tag. For example: > > <dependency org="commons-lang" name="commons-lang" rev="2.0" /> > > which doesn't have a configuration specified gives me the error: > > "impossible to ivy retrieve: java.lang.RuntimeException: problem > during retrieve of PurpleTube#IvyAnt: java.lang.RuntimeException: > Multiple artifacts of the module commons-lang#commons-lang;2.0 are > retrieved to the same file! Update the retrieve pattern to fix this > error." > > This only seems to be since rc2. Prior to that I would get a number of > files including commons-lang-2.0.jar. If I add the default > configuration: > > <dependency org="commons-lang" name="commons-lang" rev="2.0" conf="default"/> > > I get commons-lang-2.0.jar in a subdirectory of the ivy.lib.dir called > default (prior to rc2 there was no default directory). So what is > actually going on here? What's the difference between having the > default configuration and not having the default configuration, other > than the extra directory? > > Setting up my own configurations: > > <configurations> > <conf name="common" description="required for all configurations" > visibility="private" /> > <conf name="build" extends="common" description="required for the > build process only" /> > </configurations> > > <dependencies> > <dependency org="commons-lang" name="commons-lang" rev="2.0" > conf="common->default"/> > </dependencies> > > I think I'm quite comfortable with and understand, it's just the conf > = "default" stuff that's getting the better of me. Any help much > appreciated! > > -- > Thanks > Paul > > Paul Grenyer > e: [email protected] > w: http://www.marauder-consulting.co.uk > b: paulgrenyer.blogspot.com >
