Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 51325 invoked from network); 23 Feb 2007 13:19:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Feb 2007 13:19:52 -0000 Received: (qmail 48587 invoked by uid 500); 23 Feb 2007 13:20:00 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 48568 invoked by uid 500); 23 Feb 2007 13:20:00 -0000 Mailing-List: contact ivy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@incubator.apache.org Delivered-To: mailing list ivy-user@incubator.apache.org Received: (qmail 48559 invoked by uid 99); 23 Feb 2007 13:20:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Feb 2007 05:20:00 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of xavier.hanin@gmail.com designates 64.233.184.228 as permitted sender) Received: from [64.233.184.228] (HELO wr-out-0506.google.com) (64.233.184.228) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Feb 2007 05:19:49 -0800 Received: by wr-out-0506.google.com with SMTP id i20so476500wra for ; Fri, 23 Feb 2007 05:19:27 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dQlEahejunZFKYw472seNK4PoYlrxnesHKNPbEHefSi5jZX9eDWKD6oEVJ4vB1M40FkYouKG5pNscNUhE46PsL0nbSnXk1ug6ipeAKnW8uIIdHW8QHY3XCbuKc6IjOY9NM29MFQt04lRT8ZHCW1T7x1zedfUo9FDQUkXIsNNHVU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ppK4JFGd9RyfzN79MFiwb/e7hGRQwMYsKwUNI2RMjWYkMCDXFU3ZqpAxYhYbOCPvCi5NtKdyGEiKKvvufGF5mXkwsCIPdHQVKeM2Cavkh5qpe5TV0WhOZeXNPuMjRUdvVa0MHhszZiKK/9lt1jTjzNWA6si23RRhgIyAhwOfe4c= Received: by 10.115.23.12 with SMTP id a12mr835497waj.1172236766159; Fri, 23 Feb 2007 05:19:26 -0800 (PST) Received: by 10.114.124.8 with HTTP; Fri, 23 Feb 2007 05:19:26 -0800 (PST) Message-ID: <635a05060702230519n76aa92b9ve747f407d4225ce0@mail.gmail.com> Date: Fri, 23 Feb 2007 14:19:26 +0100 From: "Xavier Hanin" To: ivy-user@incubator.apache.org Subject: Re: eviction and conflict manager In-Reply-To: <45DEE151.2070505@genostar.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_46718_15906444.1172236766073" References: <45DECA65.3050201@genostar.com> <635a05060702230324g25f2fd34m912b799b5d8c0c6d@mail.gmail.com> <45DEE151.2070505@genostar.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_46718_15906444.1172236766073 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 2/23/07, Gilles Faucherand wrote: > > Xavier Hanin wrote: > > On 2/23/07, Gilles Faucherand wrote: > >> > >> Hi, > >> > >> I have some problems with eviction strategy. I set a > >> defaultConflictManager="latest-time" > >> in my ivyconf meaning for me if a conflict appears to retrieve all the > >> time the last in time published. > >> > >> Say for instance that I have 3 modules A, B and C. > >> 1) I publish C-1.0.0 and later C-1.0.1. > >> 2) B needs C-1.0.0, I retrieve (ok) and I publish B-1.0.0 > >> 3) A needs B-1.0.0 and C-1.0.1 (order is important: B before C in ivy > >> file ...) > >> > >> When I retrieve I get C-1.0.0 ??? > >> [resolve] :: evicted modules: > >> [resolve] [ MyCompany | C | 1.0.1 ] by [[ MyCompany | C | 1.0.0]] > >> in [all] > >> [resolve] in [ MyCompany | A | 1.0.0 ] with latest-time > >> > >> If I change the order in the ivy file i.e. C before B, I get what I > want > >> C-1.0.1 ... > >> [resolve] :: evicted modules: > >> [resolve] [ MyCompany | C | 1.0.0 ] by [[ MyCompany | C | 1.0.1]] > >> in [all] > >> [resolve] in [ MyCompany | B | 1.0.0 ] with latest-time > >> > >> Is it normal ? > > > > > > No, this is not normal. The only reason why this should happen is if > > the two > > revision are considered equal according to the latest revision strategy > > used, in your case latest-time. So this should only happen if the two > > have > > the same time of publication. Note that Ivy uses the publication time > > in the > > Ivy file during conflict resolution, so make sure you have set the > > publication attribute in your ivy files in your repository. > You mean in the ivy file of the module C module="C" ... publication="xxxxx" > > No, or I should change this date each time I publish and I've got a > nightly builder ... > > After publication in the repository the ivy file created was > myrepos/MyCompany/C/ivy-1.0.0.xml (following my ivy artifact pattern) > > > > status="integration" publication="20070223132315"/> > ... > > > A publication date is set ... I thought this date was used ? Yes, this the one which should be used: the ivy file for C 1.0.0 and the one for C 1.0.1 in your repository. Compare the two publication dates and make sure they are different. But I realize that during conflict resolution, the ivy files are not downloaded, so it seems to be a bug in Ivy to try to rely on this publication date in the ivy file. It should better rely on the last modified timestamp of the file. Could you please add an issue in JIRA? - Xavier > If you still > > have the problem, you can open a JIRA issue describing your problem > > and your > > environment. > > > > Xavier > > > > > > > > Thanks in advance, > >> Gilles > >> > >> > > > > ------=_Part_46718_15906444.1172236766073--