Are you depending on specific revisions or do you have version patterns? If patterns, you might try nailing down specific revisions and see if that solves your problem. I'm having some resolve / cache issues around revision patterns, but I haven't been able to nail down a specific causal relationship yet.
I just noticed that my URL came across no better than Archie's. For the record it is http://ant.apache.org/ivy/history/2.1.0-rc1/settings/caches/ttl.html Josh On Tue, Jun 16, 2009 at 12:04 AM, Dima, Alina < [email protected]> wrote: > Hi, > > Yes, my resolver points to this extern cache. This ist he resolver I use: > > <chain name="is24-extern-resolver" returnFirst="true"> > > <filesystem name="extern-localfs" cache="extern"> > <ivy > pattern="${local.extern.repository.dir}/[organisation]/[module]/ivy-[revision].xml" > /> > <artifact > pattern="${local.extern.repository.dir}/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]" > /> > > </filesystem> > > <filesystem name="extern-cached-libraries" cache="extern" local="false"> > <ivy > pattern="${extern.repository.dir}/[organisation]/[module]/ivy-[revision].xml" > /> > <artefact > pattern="${extern.repository.dir}/[organisation]/[module]/[type]s/[artifact-[revision].[ext]" > /> > </filesystem> > > </chain> > > However, Ivy seems to not find the items in the cache and keep searching > the repositories. I have no idea what the problem is. My resolver runs in > normal resolve mode, not in refresh. > > Thanks > Alina > > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:[email protected]] Im Auftrag von > Joshua Tharp > Gesendet: Montag, 15. Juni 2009 19:10 > An: [email protected] > Betreff: Re: Ivy cache TTL not working > > The URL is > http://ant.apache.org/ivy/history/2.1.0-rc1/settings/caches/ttl.html< > http://ant.apache.org/ivy/history/2.1.0-rc1/settings/caches/ttl.htmlparticularly > >and > I think Archie meant to say in "refresh" mode. Although, the > documentation says the refresh mode defaults to false, so unless you've set > it to true, that shouldn't be the issue. > > Does your resolver in your ivysettings file point to the extern cache? > > On Mon, Jun 15, 2009 at 9:03 AM, Archie Cobbs <[email protected] > >wrote: > > > See > > > http://ant.apache.org/ivy/history/2.1.0-rc1/settings/caches/ttl.htmlparticularly > > the reference to "resolve mode". I would guess resolve operates > > in "resolve mode". > > > > -Archie > > > > On Mon, Jun 15, 2009 at 8:26 AM, Dima, Alina < > > [email protected]> wrote: > > > > > Hi, > > > > > > > > > > > > I am trying to use the TTL attribute on my cache for all external > > > libraries. I want ivy to not check the central extern repository for > > > those libraries, not to even search for them in there, and just use the > > > versions in the cache. My cache setting is: > > > > > > > > > > > > <cache name="extern" basedir="${ivy.cache.extern.dir}"> > > > > > > <ttl duration="4d"/> > > > > > > </cache> > > > > > > > > > > > > When I create the resolver used for external libs, I use the cache > > > extern. > > > > > > > > > > > > However, the resolve outputs: > > > > > > > > > > > > [ivy:resolve] is24-extern-resolver: Checking cache for: dependency: > > > apache#commons-configuration;latest.integration > > > {terms=[ConfigurationFactory]} > > > > > > [ivy:resolve] no cached resolved revision for > > > apache#commons-configuration;latest.integration > > > > > > [ivy:resolve] no cached resolved revision for > > > apache#commons-configuration;latest.integration > > > > > > > > > > > > And then > > > > > > > > > > > > [ivy:resolve] found apache#commons-configuration;1.1 in > > > extern-cached-libraries > > > > > > [ivy:resolve] [1.1] > > > apache#commons-configuration;latest.integration > > > > > > > > > > > > The extern-cached-libraries is my external rep. > > > > > > > > > > > > Why does ivy still search for this lib with every resolve if TTL is set > > > to 4days. Is there something I am missing? > > > > > > > > > > > > Thanks a lot > > > > > > Alina > > > > > > > > > > > > -- > > Archie L. Cobbs > > >
