Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 11624 invoked from network); 21 Dec 2007 07:34:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Dec 2007 07:34:58 -0000 Received: (qmail 21317 invoked by uid 500); 21 Dec 2007 07:34:47 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 21290 invoked by uid 500); 21 Dec 2007 07:34:47 -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 21281 invoked by uid 99); 21 Dec 2007 07:34:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2007 23:34:47 -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 (athena.apache.org: domain of gscokart@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO py-out-1112.google.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2007 07:34:23 +0000 Received: by py-out-1112.google.com with SMTP id u77so538066pyb.15 for ; Thu, 20 Dec 2007 23:34:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=SeM81EBEVsMIx10XZMD4OCoPq4V3EB1LALX6zY9Tdeo=; b=iUJGRfdJ3+8wgyuAMQ2ZGCs6ln6Wj0YkIZk3myojmQkz9fu1Ne4tfKaJ5izDGX8AIYax42wURE0f2vaqM4L5VSxTdZWow2/Frg01bXQZAJHmHFqsbK2MpOvtyF8+ut1Pag30sVya1YLgXGZC1iuPLaCr9n5w2SqcazPf24yqd9k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=qXAfBqZxxwA3OIdZgq6ZKSEXY4Q95S/dLBWiZ88RAL+rEroNB9vKGD16ObiSVzc993Kxk3Sw5e30AQCnpYtiAsCrXsLK2YIlJ2/co0NwQvCpgCY2c1pf5EXZG1HWSCQQLmGGR3vYoMltxQ4Z9/j94/iy7hTdALRosNTTDsV9b1s= Received: by 10.35.10.13 with SMTP id n13mr1060260pyi.29.1198222466737; Thu, 20 Dec 2007 23:34:26 -0800 (PST) Received: by 10.35.87.13 with HTTP; Thu, 20 Dec 2007 23:34:26 -0800 (PST) Message-ID: Date: Fri, 21 Dec 2007 08:34:26 +0100 From: "Gilles Scokart" To: ivy-user@incubator.apache.org Subject: Re: Deploying a Project(s) In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_25129_13812442.1198222466724" References: <4769C500.3060701@cpphacker.co.uk> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_25129_13812442.1198222466724 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You will have the 1.1 version that will be taken. The 1.0 will be reported as evicted. I think you see that in the ant console. I'm sure you see it in the XML report of the resolution. Gilles 2007/12/20, Roger Kapsi : > > Cool, > > how do you avoid the following situation though. > > subproject1 depends on commons-logging-1.1.jar > subproject2 depends on commons-logging-1.0.jar > > The latter is an accident because I forgot to update subproject2's > dependencies. I was hoping Ivy could help me in the deployment process and > warn me if my subprojects refer to different versions of the same > artifact. > > Roger > > On Dec 19, 2007 8:27 PM, Phillip Rhodes wrote: > > > Roger Kapsi wrote: > > > > > And I want to tell Ivy or rather Ant to give me C and all its > > > dependencies. In other words I want to get C.jar, B.jar, A.jar and all > > > the other external Jars. Hope somebody can give me a hint how to do > > > that or am I on the wrong track with Ivy? > > > > There may be a cleaner way, but here's what I do: > > > > 1. in each sub-project, resolve the dependencies to the local "lib" dir > > with configurations separating the dependencies that are needed at > > runtime from the ones that arent'. So I wind up with something like > > > > /myproject/subproject1/lib > > /core/ > > ajar.jar > > bjar.jar > > /compile/ > > compileonly1.jar > > compileonly2.jar > > > > > > 2. in the "package" task for each sub-project (it probably more properly > > belongs in "publish" but I'm still tweaking this) copy all of the > > "runtime" jars (the "core" directory) to a common dir > > > > so I have something like this: > > > > /myproject/ > > subproject1/ > > subproject2/ > > subprojectN/ > > commonlib/ :this contains all the dependent jars for all subprojects > > > > 3. then in the "master" project I just declare dependencies on the > > artifacts from the subprojects like normal and resolve them to a dir > > I call "assemble." The I copy everything from the commonlib dir into > > the "assemble" dir and package it. In my case the subprojects are > > typically building war files or ejb-jar files and the driver builds > > an ear, but the same approach could be used for other things I guess. > > > > Again, there might be a better way, but this seems to work for now. > > HTH. > > > > > > TTYL, > > > > > > -- > > Phillip Rhodes > > Chief Architect - OpenQabal > > https://openqabal.dev.java.net > > > -- Gilles Scokart ------=_Part_25129_13812442.1198222466724--