You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Paul Grenyer <pa...@gmail.com> on 2009/07/26 13:03:55 UTC

conf = "default"

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: paul.grenyer@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

Re: conf = "default"

Posted by Geoff Clitheroe <g....@gmail.com>.
The only explanation I've seen is at the end of this page, in the
Examples for commons-lang

http://ant.apache.org/ivy/history/latest-milestone/ivyfile/dependency.html

-G


On Mon, Jul 27, 2009 at 9:37 AM, Paul Grenyer<pa...@gmail.com> wrote:
> Basically what's the difference between having conf = "default" and not having the conf attribute at all.
>
> Sent from my Archimedes A3000
>
> -----Original Message-----
> From: Geoff Clitheroe <g....@gmail.com>
>
> Date: Mon, 27 Jul 2009 09:34:38
> To: <iv...@ant.apache.org>
> Subject: Re: conf = "default"
>
>
> Errrr, can you expalin your question a bit more then!
>
> Cheers,
> Geoff
>
>
> On Mon, Jul 27, 2009 at 9:31 AM, Paul Grenyer<pa...@gmail.com> wrote:
>> Hi
>>
>> Thanks! But that's not actually the question I asked. :-)
>>
>> Paul
>>
>> Sent from my Archimedes A3000
>>
>> -----Original Message-----
>> From: Geoff Clitheroe <g....@gmail.com>
>>
>> Date: Mon, 27 Jul 2009 09:29:07
>> To: <iv...@ant.apache.org>
>> 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<pa...@gmail.com> 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: paul.grenyer@gmail.com
>>> w: http://www.marauder-consulting.co.uk
>>> b: paulgrenyer.blogspot.com
>>>
>>
>

Re: conf = "default"

Posted by Paul Grenyer <pa...@gmail.com>.
Basically what's the difference between having conf = "default" and not having the conf attribute at all.

Sent from my Archimedes A3000

-----Original Message-----
From: Geoff Clitheroe <g....@gmail.com>

Date: Mon, 27 Jul 2009 09:34:38 
To: <iv...@ant.apache.org>
Subject: Re: conf = "default"


Errrr, can you expalin your question a bit more then!

Cheers,
Geoff


On Mon, Jul 27, 2009 at 9:31 AM, Paul Grenyer<pa...@gmail.com> wrote:
> Hi
>
> Thanks! But that's not actually the question I asked. :-)
>
> Paul
>
> Sent from my Archimedes A3000
>
> -----Original Message-----
> From: Geoff Clitheroe <g....@gmail.com>
>
> Date: Mon, 27 Jul 2009 09:29:07
> To: <iv...@ant.apache.org>
> 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<pa...@gmail.com> 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: paul.grenyer@gmail.com
>> w: http://www.marauder-consulting.co.uk
>> b: paulgrenyer.blogspot.com
>>
>

Re: conf = "default"

Posted by Geoff Clitheroe <g....@gmail.com>.
Errrr, can you expalin your question a bit more then!

Cheers,
Geoff


On Mon, Jul 27, 2009 at 9:31 AM, Paul Grenyer<pa...@gmail.com> wrote:
> Hi
>
> Thanks! But that's not actually the question I asked. :-)
>
> Paul
>
> Sent from my Archimedes A3000
>
> -----Original Message-----
> From: Geoff Clitheroe <g....@gmail.com>
>
> Date: Mon, 27 Jul 2009 09:29:07
> To: <iv...@ant.apache.org>
> 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<pa...@gmail.com> 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: paul.grenyer@gmail.com
>> w: http://www.marauder-consulting.co.uk
>> b: paulgrenyer.blogspot.com
>>
>

Re: conf = "default"

Posted by Paul Grenyer <pa...@gmail.com>.
Hi

Thanks! But that's not actually the question I asked. :-)

Paul

Sent from my Archimedes A3000

-----Original Message-----
From: Geoff Clitheroe <g....@gmail.com>

Date: Mon, 27 Jul 2009 09:29:07 
To: <iv...@ant.apache.org>
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<pa...@gmail.com> 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: paul.grenyer@gmail.com
> w: http://www.marauder-consulting.co.uk
> b: paulgrenyer.blogspot.com
>

Re: conf = "default"

Posted by Geoff Clitheroe <g....@gmail.com>.
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<pa...@gmail.com> 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: paul.grenyer@gmail.com
> w: http://www.marauder-consulting.co.uk
> b: paulgrenyer.blogspot.com
>