Re: [ivyroundup] ehcache : Multiple artifacts of the module net.sourceforge.ehcache#ehcache;2.6.0 are retrieved to the same file!

684 views
Skip to first unread message

Archie Cobbs

unread,
Nov 27, 2012, 9:44:26 AM11/27/12
to ivyro...@googlegroups.com
You need to fix your retrieval pattern to avoid the conflict (as indicated in the exception message). See Retrieval Patterns on the wiki for an explanation of what this means.

-Archie

On Tue, Nov 27, 2012 at 6:32 AM, mvera <vera.m...@gmail.com> wrote:
Hi,

I encounter a problem with ehcache during ant retrieve task. I'm a newbie with ivy and I'm still not experienced enough to understand the reason.

The message complete message is:

impossible to ivy retrieve: java.lang.RuntimeException: problem during retrieve of prom#org.prom.poc.dbserver: java.lang.RuntimeException: Multiple artifacts of the module net.sourceforge.ehcache#ehcache;2.6.0 are retrieved to the same file! Update the retrieve pattern  to fix this error.

Following this mail, information about the context is provided.

Thanks for any help. Thanks to all contributors.

Mickaël

My platform:
windows 7 64 Premium Family
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
ant 1.8.4

My ivy.xml:
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
    <info
        organisation="prom"
        module="org.prom.poc.dbserver"
        status="integration">
    </info>
    <dependencies>
        <dependency org="javax.servlet" name="servletapi" rev="3.0" conf="default->default"/>
        <dependency org="org.springframework" name="spring" rev="3.1.2" conf="default->core"/>
        <dependency org="org.hibernate" name="hibernate" rev="4.1.6.Final" conf="default->default"/>
        <dependency org="org.slf4j" name="slf4j" rev="1.6.6" conf="default->core"/>    
        <dependency org="org.postgresql" name="postgresql-jdbc" rev="9.1-902" conf="default->default"/>
     </dependencies>
</ivy-module>

My ivysettings.xml:
<?xml version="1.0" encoding="UTF-8"?>
<ivysettings>
    <settings defaultResolver="roundup"/>
    <resolvers>
        <packager name="roundup" buildRoot="${user.home}/.ivy2/packager/build"
            resourceCache="${user.home}/.ivy2/packager/cache">
            <ivy
                pattern="http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/ivy.xml" />
            <artifact
                pattern="http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/packager.xml" />
        </packager>
    </resolvers>
</ivysettings>

--
You received this message because you are subscribed to the Google Groups "ivyroundup" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ivyroundup/-/y5ONRTZzx9IJ.
To post to this group, send email to ivyro...@googlegroups.com.
To unsubscribe from this group, send email to ivyroundup+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ivyroundup?hl=en.



--
Archie L. Cobbs

mvera

unread,
Nov 28, 2012, 5:15:14 AM11/28/12
to ivyro...@googlegroups.com


Le mardi 27 novembre 2012 15:44:48 UTC+1, Archie Cobbs a écrit :
You need to fix your retrieval pattern to avoid the conflict (as indicated in the exception message). See Retrieval Patterns on the wiki for an explanation of what this means.

-Archie

Thanks Archie, it worked for me. As it may not be obvious for all users, the retrieval pattern is a parameter of the retrieve ant task.

Mickaël
Reply all
Reply to author
Forward
0 new messages