Return-Path: X-Original-To: apmail-maven-dev-archive@www.apache.org Delivered-To: apmail-maven-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7DB310BC1 for ; Mon, 26 Aug 2013 08:07:13 +0000 (UTC) Received: (qmail 38099 invoked by uid 500); 26 Aug 2013 08:07:12 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 37511 invoked by uid 500); 26 Aug 2013 08:07:10 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 37492 invoked by uid 99); 26 Aug 2013 08:07:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Aug 2013 08:07:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aheritier@gmail.com designates 209.85.128.46 as permitted sender) Received: from [209.85.128.46] (HELO mail-qe0-f46.google.com) (209.85.128.46) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Aug 2013 08:07:02 +0000 Received: by mail-qe0-f46.google.com with SMTP id f6so1583225qej.33 for ; Mon, 26 Aug 2013 01:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=9tLxqvuXocXDrGhvpni+qcyIJdKYbnSpX+ENotB+7QA=; b=Me70S1OHlBKYLRafqZGv5V7C/sY06Tggiqu4LexRgm0L2AJCeOt0q6oStnxhSPRe8/ 7ZnCo/tw610tJUNA6hT6c3p6zsDVwClUE0Tfaaxm8r6xuo3IuAIp+Xgrq6wrdF6Ezw0u TnucTUFPoVQrAzkn/nYHiT4isX1OiHEsxOzYy50WA2yTSl650a0gd0cuG7tLRMhltfMA 2fZn/1FF423SbOMDunOq2a88PE4caBGa4OP+E5HBUYnhxVvIrsk/fHA9C36PHmUMa2p+ kZDZtH4ZGr/KCx9mDScRa1cjM5yk7Nm32yxJY4VpyQfGPJevLZyi/DHw4FQYHNLgxqwz jr+Q== X-Received: by 10.224.4.2 with SMTP id 2mr14898466qap.55.1377504401364; Mon, 26 Aug 2013 01:06:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.83.161 with HTTP; Mon, 26 Aug 2013 01:06:21 -0700 (PDT) In-Reply-To: References: <0036F617-0988-4B47-8F2E-358E28BF1C37@fortysix.ch> <56BFBEAC-178F-44F5-90A0-95F487E05CDD@talios.com> From: =?ISO-8859-1?Q?Arnaud_H=E9ritier?= Date: Mon, 26 Aug 2013 10:06:21 +0200 Message-ID: Subject: Re: Adding support for new dependency mediation strategy To: Maven Developers List Content-Type: multipart/alternative; boundary=047d7b604eb28522b804e4d53c52 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b604eb28522b804e4d53c52 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I think it doesn't work if you have several level of inheritance in different projects and you don't republish all intermediate artifacts Let's imagine you have projectA <-- inherit <-- projectB <-- inherit <-- projectC If all of them are in SNAPSHOT for now if you change projectA and republish it, you'll access to your changes in projectC With the resolution you'll have to wait to have projectB republished to use the change in projectC. No? Arnaud On Mon, Aug 26, 2013 at 9:55 AM, Stephen Connolly < stephen.alan.connolly@gmail.com> wrote: > On 26 August 2013 08:27, J=F6rg Schaible > wrote: > > > Hi Stephen, > > > > Stephen Connolly wrote: > > > > [snip] > > > > > It's better than that... I am not sure if I said it earlier or not, s= o > I > > > will try to say it now. > > > > > > When we get the next format, there are probably actually three files = we > > > want to deploy: > > > > > > foo-1.0.pom (the legacy 4.0.0 model) > > > foo-1.0-build.pom (the new 5.0.0+ model) > > > foo-1.0-deps.pom (the new 5.0.0+ model) > > > > > > Now foo-1.0.pom should be a resolved pom with only the bare minimum > > > required elements, e.g. dependencies and hopefully nothing else... ma= y > > > need dependencyManagement, but I think we can collapse that down. No > > > element. > > > > OK, this works for releases, but what about SNAPSHOTs? For SNAPSHOTs is > is > > quite normal that your parent is also a SNAPSHOT and you would produce > all > > kind of problems if you try to resolve/collapse SNAPSHOT parents for > > SNAPSHOT artifacts that are installed or deployed. > > > > Why? > > Or perhaps you are confusing what I mean? > > Basically the foo-1.0.pom that gets deployed/installed is the result of > help:effective-pom with some bits removed, such as , , > , etc > > When building from a checkout, the reactor will have everything... and if > you are depending on a deployed/installed -SNAPSHOT then the behaviour wi= ll > remain the same. > > And since this would be for a new Maven, we need only concern ourselves > that the contract of the new Maven's classpath and property behaviour is > correct... thus we don't have to preserve the current crazyiness when you > have a dependency that has transitive dependencies where parts of the GAV > are linked by properties. > > In short, by separating the build time pom from the deployed pom, we can > maintain a defined reproducible behaviour[1] *and* migrate the schema > > [1]: That does not mean that Maven 4.0 will allow you to reproduce all of > the classpath hacks that you can with Maven 2/3... some of those hacks ar= e > stupid (even if people insist on using them)... but it should mean that > whatever classpath constructs you can do in Maven 4.0 get mapped correctl= y > on a best effort basis to the legacy clients > > > > > > [snip] > > > > - J=F6rg > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > > For additional commands, e-mail: dev-help@maven.apache.org > > > > > --=20 ----- Arnaud H=E9ritier http://aheritier.net Mail/GTalk: aheritier AT gmail DOT com Twitter/Skype : aheritier --047d7b604eb28522b804e4d53c52--