Return-Path: Delivered-To: apmail-maven-dev-archive@www.apache.org Received: (qmail 39204 invoked from network); 3 Apr 2009 18:29:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Apr 2009 18:29:06 -0000 Received: (qmail 73943 invoked by uid 500); 3 Apr 2009 18:29:05 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 73818 invoked by uid 500); 3 Apr 2009 18:29:04 -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 73808 invoked by uid 99); 3 Apr 2009 18:29:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 18:29:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.55] (HELO smtp110.prem.mail.sp1.yahoo.com) (98.136.44.55) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 03 Apr 2009 18:28:56 +0000 Received: (qmail 95810 invoked from network); 3 Apr 2009 18:28:35 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=uzpWmj3C5AWrK3ZeLT0PbFiZOBLl8j51J/4vgvvj6y8UOx+aF8MmW184d6uzdDpQRURI0nWPj6G+OhSglFsLBL8mD4FAVATxtlwRjkIpX6qfgAxceg1XCfN5wbE09mILZI8jLSBjOG8anSeI3CsKE89b1SdsRqQJlQ30ZgSgSCc= ; Received: from unknown (HELO ?10.11.55.39?) (david_jencks@76.76.148.215 with plain) by smtp110.prem.mail.sp1.yahoo.com with SMTP; 3 Apr 2009 18:28:34 -0000 X-YMail-OSG: M6f0MsAVM1k9WHXR.utdO9PUz1iEnSOgwJBks7a2PZ8cBAGJPyd3szlhPKrwFAU5MkBKvJGMRHSKhXNeL_FTMWzr6OEDOkWOmNh9wkPzAe87EzT9mcmLBJ4nUVg6gGVOyuNUmWFDsMg5MvFSEpDYuKa2LfHMEA8zO.xBwzgZHAdASOvnlb2qaXpBlZ3oW3fFAax7FqmJ2fCwOUAHFFflmWXZH9AxLyT5bJzQircDjinHkW.1rTnLfaQEgK_W_kvq4xJD.1r5d38_8lE2HB0k1t2fds5eJqWKkHuIICyY3JBSXYHuMuGYAKCt3UVB6MZpYHznxJtXtouAGeBiEsB7oWQ- X-Yahoo-Newman-Property: ymail-3 Message-Id: <8B81F0C3-C113-40A4-8BD6-318FAF556735@yahoo.com> From: David Jencks To: "Maven Developers List" In-Reply-To: <2BABBE7D2A66E04DB8A66A527D29927E53C209@intrepid.infinity.nu> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Is it now possible to affect reactor build ordering without using a normal module dependency? Date: Fri, 3 Apr 2009 11:28:33 -0700 References: <30D63B30-1664-4F7E-AEAC-48D3192FFBB6@yahoo.com> <2BABBE7D2A66E04DB8A66A527D29927E53C209@intrepid.infinity.nu> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On Apr 3, 2009, at 10:14 AM, Brian E. Fox wrote: > It's because a plugin may have a defacto dependency based on something > in its configuration. Maven won't know about this so if that dep is in > the same reactor, it may not be ordered correctly. The dependency:copy > is an example of this. There should be a way for a plugin to > participate > in the reactor ordering for cases like this. There's a proposal but I > can't find it at this time. Hmmm.... I guess when I read the dependency plugin docs and it said that it could download artifacts all by itself it didn't really register. I don't really understand any point of view other than these required artifacts are dependencies that happen to be declared only in the plugin configuration, not in the normal dependencies section of the pom. As such I'd expect that if you don't want to have to explicitly list them as dependencies then the plugin ought to get a chance to add dependencies during some kind of setup phase. I have a plugin for which this would be extremely handy. Is this what is planned for 3.0 or is there another point of view I have yet to comprehend? thanks david jencks > > > -----Original Message----- > From: David Jencks [mailto:david_jencks@yahoo.com] > Sent: Friday, April 03, 2009 12:34 PM > To: Maven Developers List > Subject: Re: Is it now possible to affect reactor build ordering > without > using a normal module dependency? > > Why do you want to affect the reactor build ordering without using a > dependency? > > The only use for something like this I have thought of.... so this > might be a feature request.... is that I would like to be able to > assure that a large project with deeply nested structure can be built > in stages. For instance if I have a project like this: > > base > -sub1 > --p1 > --p2 > -sub2 > --p3 > --p4 > > where base, sub1 and sub2 are pom packaging and p1...p4 have the code > in them, > > I would like to be able to assure that all of sub1 gets built before > any of sub2 to assist in preventing any dependencies of p1 or p2 on p3 > or p4. AFAICT the current behavior is that maven puts p1...p4 in a > single bucket and tries to find a build order that satisfies the > dependencies. > > thanks > david jencks > > > > On Apr 3, 2009, at 9:11 AM, James Carpenter wrote: > >> In the past plugins such as the dependency plugin didn't have a way >> to >> affect the reactor build order without having the user add a real >> dependency >> (say test scope) to the module using the plugin (or having the plugin >> programatically do the same) just to ensure proper build ordering. >> I assume >> this problem will eventually be solved in some manner (say a ghost >> dependency scope), but that it is likely a difficult one for some >> reason or >> other and therefore has not been solved long ago. >> >> If all the referenced artifacts are jars one can sometimes >> workaround the >> problem using plugin dependencies like I did when enhancing the >> exec:java >> plugin for non-java modules. >> > http://mojo.codehaus.org/exec-maven-plugin/examples/example-exec-using-p > lugin-dependencies.html >> >> I am about to write a plugin which automatically downloads a few >> archives >> specified by GAVs, and I'm wondering if the situation has improved. >> If not >> I will simply use have to work around the issue. Can anyone provide >> some >> color the current status of this issue? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > For additional commands, e-mail: dev-help@maven.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > For additional commands, e-mail: dev-help@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org