From ivy-user-return-450-apmail-incubator-ivy-user-archive=incubator.apache.org@incubator.apache.org Wed Feb 28 22:06:07 2007 Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 80516 invoked from network); 28 Feb 2007 22:06:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Feb 2007 22:06:07 -0000 Received: (qmail 24011 invoked by uid 500); 28 Feb 2007 22:06:15 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 23990 invoked by uid 500); 28 Feb 2007 22:06:15 -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 23981 invoked by uid 99); 28 Feb 2007 22:06:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2007 14:06:15 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of snesbitt@cobaltgroup.com designates 207.149.72.235 as permitted sender) Received: from [207.149.72.235] (HELO franklin.cobaltgroup.com) (207.149.72.235) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2007 14:06:04 -0800 Received: from EX-SEA-IMC2.main.cobaltgroup.com (ex-sea-imc2.cobaltgroup.com [192.168.10.48]) by franklin.cobaltgroup.com (8.13.1/8.13.1) with ESMTP id l1SM5hu9022809 for ; Wed, 28 Feb 2007 14:05:43 -0800 Received: from SEA-EVS-01.main.cobaltgroup.com ([192.168.10.101]) by EX-SEA-IMC2.main.cobaltgroup.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 28 Feb 2007 14:05:42 -0800 Received: from plzen.main.cobaltgroup.com ([192.168.20.128]) by SEA-EVS-01.main.cobaltgroup.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 28 Feb 2007 14:05:42 -0800 From: Stephen Nesbitt Reply-To: snesbitt@cobaltgroup.com Organization: The Cobalt Group To: ivy-user@incubator.apache.org Subject: Re: first question about dependency confs Date: Wed, 28 Feb 2007 14:05:41 -0800 User-Agent: KMail/1.9.6 References: <653813.85287.qm@web55109.mail.re4.yahoo.com> In-Reply-To: <653813.85287.qm@web55109.mail.re4.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200702281405.42098.snesbitt@cobaltgroup.com> X-OriginalArrivalTime: 28 Feb 2007 22:05:42.0627 (UTC) FILETIME=[96BF2B30:01C75B84] X-Virus-Checked: Checked by ClamAV on apache.org On Wednesday 28 February 2007 12:51:16 pm Matt Benson wrote: > ACK! =A0I think I get it now. =A0The dependency conf, duh, > shows for each local conf in which this dependency is > required, what is the corresponding conf of the > dependency, right? > > Sorry for the stupid question. =A0;) > > -Matt Right. Take modules BAR and BAZ BAR declares an artifact FOO with a conf =3D client. BAR is essentially=20 saying "I publish an artifact FOO and I expect that depednents will use=20 me as a client". Now take module BAZ which declares two configurations - compilation and=20 test - with a dependency on FOO when testing. BAZ is basically saying "I=20 am dependent on the artifact FOO from module BAR in the context of=20 testing, but not in the context of compilation." To declare this dependency I need to add a dependency element in BAZ's ivy= =20 file. Since I only need BAR in the context of testing I will set the conf=20 on the dependency to test: . Now Ivy goes to work. I tell Ivy I am working in the test context (request= =20 the test conf). Ivy scans the dependencies and sees that when in the test=20 context BAZ has a dependency on BAR. Ivy then scans BAR looking for=20 artifacts that BAR publishes with the "test" conf. But wait a minute, BAR=20 doesn't publish any artifacts for the test conf so when I do an Ivy=20 resolve in the test context I don't get FOO(FOO has a conf of client not=20 test). To fix this I need to declare a mapping, and tell Ivy that 1) I have a=20 dependency on BAR in the test context and 2) that when resolving BAR=20 artifacts in the test context I should look for BAR artifacts with a conf=20 of client. Ergo: client" /> =2Dsteve =2D-=20 Stephen Nesbitt CM Architect/Lead The Cobalt Group snesbitt@cobaltgroup.com x8271