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 <[email protected]> To: [email protected] 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 <[email protected]> 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 <[email protected]> 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=- >> >
