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 Maarten Coene <ma...@yahoo.com> on 2009/05/26 23:13:38 UTC

Re: Multiple artifacts of the module commons-logging#commons-logging;1.1.1 are retrieved to the same file!

Could you give it a try with the following pattern:
pattern="lib/[conf]/[type]/[artifact].[revision](-[classifier]).[ext]"

Maarten




----- Original Message ----
From: Nathaniel Auvil <na...@gmail.com>
To: ivy-user@ant.apache.org
Sent: Tuesday, May 26, 2009 7:09:09 PM
Subject: Re: Multiple artifacts of the module commons-logging#commons-logging;1.1.1  are retrieved to the same file!

thanks for the reply.  i replaced the jar with [type] and i get the same
error


On Tue, May 26, 2009 at 1:05 PM, Archie Cobbs <ar...@gmail.com>wrote:

> You probably need to include [type] in your pattern. Try something like
> pattern="lib/[conf]/[type]/[artifact].[revision].[ext]" instead.
>
> -Archie
>
> On Tue, May 26, 2009 at 12:02 PM, Nathaniel Auvil <
> nathaniel.auvil@gmail.com
> > wrote:
>
> > I am getting the following error:
> >
> > java.lang.RuntimeException: Multiple artifacts of the module
> > commons-logging#commons-logging;1.1.1 are retrieved to the same file!
> > Update
> > the retrieve pattern  to fix this error.
> >
> > i googled and found some configs which i tried and had no success, such
> as:
> >
> > <ivy:retrieve pattern="lib/[conf]/jar/[artifact].[revision].[ext]"
> > sync="true"/>
> >
> >
> > any ideas?  I am going to fall back to the 2.0.0 release to see if that
> > works.
> >
>
>
>
> --
> Archie L. Cobbs
>



      

Re: Multiple artifacts of the module commons-logging#commons-logging;1.1.1 are retrieved to the same file!

Posted by Maarten Coene <ma...@yahoo.com>.
Could you please post your ivysettings.xml and your ivy.xml as well?

Maarten




----- Original Message ----
From: Nathaniel Auvil <na...@gmail.com>
To: ivy-user@ant.apache.org
Sent: Wednesday, May 27, 2009 1:31:25 PM
Subject: Re: Multiple artifacts of the module commons-logging#commons-logging;1.1.1  are retrieved to the same file!

with:

<target name="resolve" description="downloads jars and places in the 'lib'
directory">
        <ivy:settings file="ivysettings.xml"/>
        <!--ivy:retrieve pattern="lib/[artifact].[revision].[ext]"
sync="true"/ -->
        <ivy:retrieve
pattern="lib/[conf]/[type]/[artifact].[revision](-[classifier]).[ext]"
sync="true"/>
    </target>


still get:

java.lang.RuntimeException: Multiple artifacts of the module
commons-logging#commons-logging;1.1.1 are retrieved to the same file! Update
the retrieve pattern  to fix this error.



On Tue, May 26, 2009 at 5:13 PM, Maarten Coene <ma...@yahoo.com>wrote:

>
> Could you give it a try with the following pattern:
> pattern="lib/[conf]/[type]/[artifact].[revision](-[classifier]).[ext]"
>
> Maarten
>
>
>
>
> ----- Original Message ----
> From: Nathaniel Auvil <na...@gmail.com>
> To: ivy-user@ant.apache.org
> Sent: Tuesday, May 26, 2009 7:09:09 PM
> Subject: Re: Multiple artifacts of the module
> commons-logging#commons-logging;1.1.1  are retrieved to the same file!
>
> thanks for the reply.  i replaced the jar with [type] and i get the same
> error
>
>
> On Tue, May 26, 2009 at 1:05 PM, Archie Cobbs <archie.cobbs@gmail.com
> >wrote:
>
> > You probably need to include [type] in your pattern. Try something like
> > pattern="lib/[conf]/[type]/[artifact].[revision].[ext]" instead.
> >
> > -Archie
> >
> > On Tue, May 26, 2009 at 12:02 PM, Nathaniel Auvil <
> > nathaniel.auvil@gmail.com
> > > wrote:
> >
> > > I am getting the following error:
> > >
> > > java.lang.RuntimeException: Multiple artifacts of the module
> > > commons-logging#commons-logging;1.1.1 are retrieved to the same file!
> > > Update
> > > the retrieve pattern  to fix this error.
> > >
> > > i googled and found some configs which i tried and had no success, such
> > as:
> > >
> > > <ivy:retrieve pattern="lib/[conf]/jar/[artifact].[revision].[ext]"
> > > sync="true"/>
> > >
> > >
> > > any ideas?  I am going to fall back to the 2.0.0 release to see if that
> > > works.
> > >
> >
> >
> >
> > --
> > Archie L. Cobbs
> >
>
>
>
>
>



      

Re: Multiple artifacts of the module commons-logging#commons-logging;1.1.1 are retrieved to the same file!

Posted by Nathaniel Auvil <na...@gmail.com>.
with:

 <target name="resolve" description="downloads jars and places in the 'lib'
directory">
        <ivy:settings file="ivysettings.xml"/>
        <!--ivy:retrieve pattern="lib/[artifact].[revision].[ext]"
sync="true"/ -->
        <ivy:retrieve
pattern="lib/[conf]/[type]/[artifact].[revision](-[classifier]).[ext]"
sync="true"/>
    </target>


still get:

java.lang.RuntimeException: Multiple artifacts of the module
commons-logging#commons-logging;1.1.1 are retrieved to the same file! Update
the retrieve pattern  to fix this error.



On Tue, May 26, 2009 at 5:13 PM, Maarten Coene <ma...@yahoo.com>wrote:

>
> Could you give it a try with the following pattern:
> pattern="lib/[conf]/[type]/[artifact].[revision](-[classifier]).[ext]"
>
> Maarten
>
>
>
>
> ----- Original Message ----
> From: Nathaniel Auvil <na...@gmail.com>
> To: ivy-user@ant.apache.org
> Sent: Tuesday, May 26, 2009 7:09:09 PM
> Subject: Re: Multiple artifacts of the module
> commons-logging#commons-logging;1.1.1  are retrieved to the same file!
>
> thanks for the reply.  i replaced the jar with [type] and i get the same
> error
>
>
> On Tue, May 26, 2009 at 1:05 PM, Archie Cobbs <archie.cobbs@gmail.com
> >wrote:
>
> > You probably need to include [type] in your pattern. Try something like
> > pattern="lib/[conf]/[type]/[artifact].[revision].[ext]" instead.
> >
> > -Archie
> >
> > On Tue, May 26, 2009 at 12:02 PM, Nathaniel Auvil <
> > nathaniel.auvil@gmail.com
> > > wrote:
> >
> > > I am getting the following error:
> > >
> > > java.lang.RuntimeException: Multiple artifacts of the module
> > > commons-logging#commons-logging;1.1.1 are retrieved to the same file!
> > > Update
> > > the retrieve pattern  to fix this error.
> > >
> > > i googled and found some configs which i tried and had no success, such
> > as:
> > >
> > > <ivy:retrieve pattern="lib/[conf]/jar/[artifact].[revision].[ext]"
> > > sync="true"/>
> > >
> > >
> > > any ideas?  I am going to fall back to the 2.0.0 release to see if that
> > > works.
> > >
> >
> >
> >
> > --
> > Archie L. Cobbs
> >
>
>
>
>
>