ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Harrigan <dharri...@gmail.com>
Subject Re: A little request for help for a newbie please.
Date Tue, 09 Feb 2010 12:37:18 GMT
Hi,

This is just a thank you to one and all. I got it working following
Maarten's advice. Here are my settings:

ivy.xml
<dependency org="net.sf.ehcache" name="ehcache-core"
rev="2.0.0-SNAPSHOT" changing="true" conf="runtime->default" />

ivysettings.xml
<ivysettings>
    <settings defaultResolver="default" />
    <resolvers m2compatible="true">
        <chain name="default" returnFirst="true" checkmodified="true">
            <ibiblio name="ibiblio" m2compatible="true" />
            <ibiblio name="sourceforge-ehcache" m2compatible="true"
root="http://oss.sonatype.org/content/groups/sourceforge/" />
        </chain>
    </resolvers>
    <modules>
        <module organisation="net.sf.ehcache" name=".*"
resolver="sourceforge-ehcache" />
    </modules>
</ivysettings>

Here is some output running resolve:

ivy:retrieve] downloading
http://oss.sonatype.org/content/groups/sourceforge/net/sf/ehcache/ehcache-core/2.0.0-SNAPSHOT/ehcache-core-2.0.0-20100209.114322-91.jar
...
[ivy:retrieve] ...................................................
[ivy:retrieve] ......
[ivy:retrieve] ..............................................................................................................................
(458kB)


Thank you again to everyone :-)

-=david=-

On 9 February 2010 13:28, David Harrigan <dharrigan@gmail.com> wrote:
> Hi Maarten,
>
> Thank you very much for this helpful hint. I'll use the ibiblio
> settings and change the root to point to the ehcache repository.
>
> -=david=-
>
> On 9 February 2010 13:16, Maarten Coene <maarten_coene@yahoo.com> wrote:
>> Ivy will only use the maven-metadata.xml if you use the ibiblio resolver.
>> So if you update your settings to use "ibiblio" instead of "url" it should work.
>>
>> Maarten
>>
>>
>>
>>
>> ----- Original Message ----
>> From: David Harrigan <dharrigan@gmail.com>
>> To: ivy-user@ant.apache.org
>> Sent: Tue, February 9, 2010 11:52:14 AM
>> Subject: Re: A little request for help for a newbie please.
>>
>> Hi Gareth,
>>
>> Thank you for your reply. I'm trying to get the latest snapshot from
>> ehcache for version 2.0.0. If I visit this location:
>>
>> http://oss.sonatype.org/content/repositories/sourceforge-snapshots/net/sf/ehcache/ehcache-core/2.0.0-SNAPSHOT/
>>
>> I see there are jars there, for example:
>>
>> ehcache-core-2.0.0-20100209.030329-89.jar
>>
>> I notice also there is a maven-metadata.xml file that points to that
>> build (89) as being the latest snapshot.
>>
>> Sorry if I'm confused here, I'm very new to it and I thought that ivy
>> would be able to read the maven-metadata.xml file and figure out which
>> latest snapshot to download. Thank you for your assistance on this :-)
>>
>> -=david=-
>>
>> On 9 February 2010 11:46, Gareth Western <gareth@garethwestern.com> wrote:
>>> Hi David,
>>>
>>> I had a look through that oss.sonatype.org repo in order to check if
>>> your resolver pattern should work, but I couldn't see a
>>> ehcache-core-2.0.0-SNAPSHOT.jar anywhere.
>>>
>>> Which version exactly are you looking for (see
>>> http://oss.sonatype.org/content/repositories/sourceforge-snapshots/net/sf/ehcache/ehcache-core/2.0.0-SNAPSHOT/)
>>> ?
>>>
>>> Cheers,
>>>
>>> Gareth
>>>
>>>
>>> On Tue, Feb 9, 2010 at 9:06 AM, David Harrigan <dharrigan@gmail.com> wrote:
>>>> Hiya,
>>>>
>>>> I'm trying to figure out how I can get ivy to pull in these deps:
>>>>
>>>> http://oss.sonatype.org/content/repositories/sourceforge-snapshots/net/sf/ehcache/ehcache/
>>>>
>>>> In my ivy.xml I have:
>>>>
>>>> <!-- EHCACHE -->
>>>> <dependency org="net.sf.ehcache" name="ehcache" rev="2.0.0-SNAPSHOT"
>>>> conf="runtime->default"/>
>>>> <dependency org="net.sf.ehcache" name="ehcache-core"
>>>> rev="2.0.0-SNAPSHOT" conf="runtime->default"/>
>>>>
>>>> I've got an ivysettings.xml configured as:
>>>>
>>>> <ivysettings>
>>>>    <settings defaultResolver="ibiblio" />
>>>>    <resolvers>
>>>>        <ibiblio name="ibiblio" m2compatible="true" />
>>>>        <url name="sourceforge-ehcache" m2compatible="true" >
>>>>            <ivy
>>>> pattern="http://oss.sonatype.org/content/repositories/sourceforge-snapshots/net/sf/[module]/[module]/[revision]/ivy-[revision].xml"
>>>> />
>>>>            <artifact
>>>> pattern="http://oss.sonatype.org/content/repositories/sourceforge-snapshots/net/sf/[module]/[module]/[revision]/[artifact]-[revision].[ext]"
>>>> />
>>>>        </url>
>>>>    </resolvers>
>>>>    <modules>
>>>>        <module organisation="net.sf.ehcache" name="*"
>>>> resolver="sourceforge-ehcache" />
>>>>    </modules>
>>>> </ivysettings>
>>>>
>>>> However, when I run ivy, I get this error:
>>>>
>>>> [ivy:retrieve]
>>>> [ivy:retrieve] :: problems summary ::
>>>> [ivy:retrieve] :::: WARNINGS
>>>> [ivy:retrieve]          module not found: net.sf.ehcache#ehcache;2.0.0-SNAPSHOT
>>>> [ivy:retrieve]  ==== sourceforge-ehcache: tried
>>>> [ivy:retrieve]
>>>> http://oss.sonatype.org/content/repositories/sourceforge-snapshots/net/sf/ehcache/ehcache/2.0.0-SNAPSHOT/ivy-2.0.0-SNAPSHOT.xml
>>>> [ivy:retrieve]    -- artifact net.sf.ehcache#ehcache;2.0.0-SNAPSHOT!ehcache.jar:
>>>> [ivy:retrieve]
>>>> http://oss.sonatype.org/content/repositories/sourceforge-snapshots/net/sf/ehcache/ehcache/2.0.0-SNAPSHOT/ehcache-2.0.0-SNAPSHOT.jar
>>>> [ivy:retrieve]
>>>> http://oss.sonatype.org/content/repositories/sourceforge-snapshots/net/sf/ehcache/ehcache/2.0.0-SNAPSHOT/ehcache.jar
>>>> [ivy:retrieve]          module not found: net.sf.ehcache#ehcache-core;2.0.0-SNAPSHOT
>>>> [ivy:retrieve]  ==== sourceforge-ehcache: tried
>>>> [ivy:retrieve]
>>>> http://oss.sonatype.org/content/repositories/sourceforge-snapshots/net/sf/ehcache-core/ehcache-core/2.0.0-SNAPSHOT/ivy-2.0.0-SNAPSHOT.xml
>>>> [ivy:retrieve]    -- artifact
>>>> net.sf.ehcache#ehcache-core;2.0.0-SNAPSHOT!ehcache-core.jar:
>>>> [ivy:retrieve]
>>>> http://oss.sonatype.org/content/repositories/sourceforge-snapshots/net/sf/ehcache-core/ehcache-core/2.0.0-SNAPSHOT/ehcache-core-2.0.0-SNAPSHOT.jar
>>>> [ivy:retrieve]
>>>> http://oss.sonatype.org/content/repositories/sourceforge-snapshots/net/sf/ehcache-core/ehcache-core/2.0.0-SNAPSHOT/ehcache-core.jar
>>>> [ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
>>>> [ivy:retrieve]          ::          UNRESOLVED DEPENDENCIES  
      ::
>>>> [ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
>>>> [ivy:retrieve]          :: net.sf.ehcache#ehcache;2.0.0-SNAPSHOT: not
found
>>>> [ivy:retrieve]          :: net.sf.ehcache#ehcache-core;2.0.0-SNAPSHOT:
not found
>>>> [ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
>>>> [ivy:retrieve]
>>>> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>>>>
>>>> I've tried playing around with the location of the [module] and
>>>> [revision] variable's but can't seem to resolve my problem.
>>>>
>>>> I was wondering if any kind person could help me out please?
>>>>
>>>> Thank you
>>>>
>>>> -=david=-
>>>>
>>>
>>
>>
>>
>>
>>
>

Mime
View raw message