Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 47671 invoked from network); 16 Jun 2009 14:08:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jun 2009 14:08:05 -0000 Received: (qmail 26064 invoked by uid 500); 16 Jun 2009 14:08:16 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 26034 invoked by uid 500); 16 Jun 2009 14:08:16 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 26024 invoked by uid 99); 16 Jun 2009 14:08:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 14:08:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of joshua.tharp@gmail.com designates 74.125.46.158 as permitted sender) Received: from [74.125.46.158] (HELO yw-out-1718.google.com) (74.125.46.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 14:08:06 +0000 Received: by yw-out-1718.google.com with SMTP id 5so2644008ywr.70 for ; Tue, 16 Jun 2009 07:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=ae+LpTOmxKWWkWTRoHfCrDDTSa3wB3qyPAGd9KNgiGA=; b=CjMS2csELGkEA/2YJAe9F7SLbm0sZVTEo+fJC+IIEI2RpF89I9uHb3O9SdravVCoK/ VI99xBXuNnzzQwSdbI12dvZgrx4wMdZILv1Va4ZPSAnpcni9EESc19dT8NVcsyLbWzWc m9Y+p/ui8QtlQwKvWlWKn1IA3WewBsU5dKLzU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=Ym63aoU+ix0l7TNI6LqlII8KqLFM0vPAyoqIvVj5Sfm3Ojgk27JQzidnkN/DMBhCsg GFZppqpEEPH9CCPyP1uzlWhetigFEoy9+wjmoifAn4LCJJ1+jWg+sR+5w+f0+WTCyUTY GGBDki2gFgZhBENc7pZ3HbaFZoipxcB0JviiM= MIME-Version: 1.0 Sender: joshua.tharp@gmail.com Received: by 10.100.154.17 with SMTP id b17mr10691188ane.45.1245161264868; Tue, 16 Jun 2009 07:07:44 -0700 (PDT) In-Reply-To: <3A6EBB838B01774682FFF62B2C7A048E020EF165@ISDEBLNEXC10.iscout.local> References: <3A6EBB838B01774682FFF62B2C7A048E020EF161@ISDEBLNEXC10.iscout.local> <3bc8237c0906150903g1055338aq1b1dd9c49f1b7107@mail.gmail.com> <3A6EBB838B01774682FFF62B2C7A048E020EF162@ISDEBLNEXC10.iscout.local> <3A6EBB838B01774682FFF62B2C7A048E020EF165@ISDEBLNEXC10.iscout.local> Date: Tue, 16 Jun 2009 07:07:44 -0700 X-Google-Sender-Auth: 93dac1decd85fa03 Message-ID: Subject: Re: Ivy cache TTL not working From: Joshua Tharp To: ivy-user@ant.apache.org Content-Type: multipart/alternative; boundary=0016e642d376e16eb8046c77b2da X-Virus-Checked: Checked by ClamAV on apache.org --0016e642d376e16eb8046c77b2da Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'll give you what I've got... Like I said, however, if I introduce revisio= n patterns (like 1.0.+) then Ivy seems to resolve every time. Hope this helps, Josh The cache and resolver sections of my ivysettings file =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D The dependencies in one of my ivy.xml files =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D default" /> default" /> default" /> default" /> The applicable sections of my build file =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D First run in my module's build =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D dependencies:resolve: [ivy:resolve] :: resolving dependencies :: com.myorg#my-module;working@Hawk [ivy:resolve] confs: [build, default, test, checkstyle] [ivy:resolve] found javax.javaee#javaee-api;5.0 in shared [ivy:resolve] found org.apache.commons#commons-logging;1.1.1 in shared [ivy:resolve] found org.junit#junit;4.5 in shared [ivy:resolve] found com.puppycrawl#checkstyle;5.0 in shared [ivy:resolve] downloading http://myreposerver/repository/modules/javax.javaee/javaee-api/5.0/jars/jav= aee-api-5.0.jar... [ivy:resolve] ........................................................ (610kB) [ivy:resolve] [SUCCESSFUL ] javax.javaee#javaee-api;5.0!javaee-api.jar (16ms) [ivy:resolve] downloading http://myreposerver/repository/modules/org.apache.commons/commons-logging/1= .1.1/jars/commons-logging-1.1.1.jar... [ivy:resolve] ...... (59kB) [ivy:resolve] [SUCCESSFUL ] org.apache.commons#commons-logging;1.1.1!commons-logging.jar (0ms) [ivy:resolve] downloading http://myreposerver/repository/modules/org.apache.commons/commons-logging/1= .1.1/javadocs/commons-logging-javadoc-1.1.1.zip... [ivy:resolve] ......... (138kB) [ivy:resolve] [SUCCESSFUL ] org.apache.commons#commons-logging;1.1.1!commons-logging-javadoc.zip(javado= c) (16ms) [ivy:resolve] downloading http://myreposerver/repository/modules/org.apache.commons/commons-logging/1= .1.1/sources/commons-logging-source-1.1.1.zip... [ivy:resolve] .... (73kB) [ivy:resolve] [SUCCESSFUL ] org.apache.commons#commons-logging;1.1.1!commons-logging-source.zip(source) (15ms) [ivy:resolve] downloading http://myreposerver/repository/modules/org.junit/junit/4.5/jars/junit-4.5.j= ar... [ivy:resolve] .............. (194kB) [ivy:resolve] [SUCCESSFUL ] org.junit#junit;4.5!junit.jar (47ms) [ivy:resolve] downloading http://myreposerver/repository/modules/com.puppycrawl/checkstyle/5.0/jars/c= heckstyle-5.0.jar... [ivy:resolve] ...........................................................................= ...........................................................................= ..... (1780kB) [ivy:resolve] [SUCCESSFUL ] com.puppycrawl#checkstyle;5.0!checkstyle.jar (47ms) [ivy:resolve] :: resolution report :: resolve 297ms :: artifacts dl 187ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | build | 2 | 2 | 2 | 0 || 4 | 4 | | default | 0 | 0 | 0 | 0 || 0 | 0 | | test | 1 | 1 | 1 | 0 || 1 | 1 | | checkstyle | 1 | 1 | 1 | 0 || 1 | 1 | --------------------------------------------------------------------- dependencies:retrieve: [ivy:retrieve] :: retrieving :: com.myorg#my-module [sync] [ivy:retrieve] confs: [build, default, test, checkstyle] [ivy:retrieve] 6 artifacts copied, 0 already retrieved (2856kB/31ms) Second run (LAN unplugged) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D dependencies:resolve: [ivy:resolve] :: resolving dependencies :: com.myorg#my-module;working@Hawk [ivy:resolve] confs: [build, default, test, checkstyle] [ivy:resolve] found javax.javaee#javaee-api;5.0 in shared [ivy:resolve] found org.apache.commons#commons-logging;1.1.1 in shared [ivy:resolve] found org.junit#junit;4.5 in shared [ivy:resolve] found com.puppycrawl#checkstyle;5.0 in shared [ivy:resolve] :: resolution report :: resolve 78ms :: artifacts dl 15ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | build | 2 | 0 | 0 | 0 || 4 | 0 | | default | 0 | 0 | 0 | 0 || 0 | 0 | | test | 1 | 0 | 0 | 0 || 1 | 0 | | checkstyle | 1 | 0 | 0 | 0 || 1 | 0 | --------------------------------------------------------------------- dependencies:retrieve: [ivy:retrieve] :: retrieving :: com.myorg#my-module [sync] [ivy:retrieve] confs: [build, default, test, checkstyle] [ivy:retrieve] 0 artifacts copied, 6 already retrieved (0kB/32ms) On Tue, Jun 16, 2009 at 6:24 AM, Dima, Alina < alina.dima@immobilienscout24.de> wrote: > Has anyone actually tested this TTL attribute? I have been trying it arou= nd > all day with no results. I just cannot make it work, and additionally, I > have noticed that although I set the ivy.cache.ttl.default to different > values for different caches, the value printed in the resolve logs is alw= ays > 10s...I keep getting messages:" Override ignored for property > "ivy.cache.ttl.default"". I would really appreciate it if someone who has > worked with this attribute and has an example of how the resolution log > looks like when this attribute is used successfully could help me out :) > > What I am trying to do is avoid "work offline" for a given set of librari= es > for a particular amount of time, that is avoid the whole search in the > repositories... anyone know maybe of another way to achieve this? > > Thanks > Alina > > -----Urspr=FCngliche Nachricht----- > Von: Dima, Alina [mailto:alina.dima@immobilienscout24.de] > Gesendet: Dienstag, 16. Juni 2009 09:04 > An: ivy-user@ant.apache.org > Betreff: AW: Ivy cache TTL not working > > Hi, > > Yes, my resolver points to this extern cache. This ist he resolver I use: > > > > > pattern=3D"${local.extern.repository.dir}/[organisation]/[module]/ivy-[re= vision].xml" > /> > pattern=3D"${local.extern.repository.dir}/[organisation]/[module]/[type]s= /[artifact]-[revision].[ext]" > /> > > > > > pattern=3D"${extern.repository.dir}/[organisation]/[module]/ivy-[revision= ].xml" > /> > pattern=3D"${extern.repository.dir}/[organisation]/[module]/[type]s/[arti= fact-[revision].[ext]" > /> > > > > > 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=FCngliche Nachricht----- > Von: joshua.tharp@gmail.com [mailto:joshua.tharp@gmail.com] Im Auftrag vo= n > Joshua Tharp > Gesendet: Montag, 15. Juni 2009 19:10 > An: ivy-user@ant.apache.org > 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.htmlparti= cularly > >and > I think Archie meant to say in "refresh" mode. Although, the > documentation says the refresh mode defaults to false, so unless you've s= et > 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 >wrote: > > > See > > > http://ant.apache.org/ivy/history/2.1.0-rc1/settings/caches/ttl.htmlparti= cularly > > 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 < > > alina.dima@immobilienscout24.de> 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 t= he > > > versions in the cache. My cache setting is: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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=3D[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 s= et > > > to 4days. Is there something I am missing? > > > > > > > > > > > > Thanks a lot > > > > > > Alina > > > > > > > > > > > > -- > > Archie L. Cobbs > > > --0016e642d376e16eb8046c77b2da--