Return-Path: Delivered-To: apmail-continuum-issues-archive@www.apache.org Received: (qmail 94425 invoked from network); 14 Oct 2008 22:14:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Oct 2008 22:14:51 -0000 Received: (qmail 73569 invoked by uid 500); 14 Oct 2008 22:14:51 -0000 Delivered-To: apmail-continuum-issues-archive@continuum.apache.org Received: (qmail 73554 invoked by uid 500); 14 Oct 2008 22:14:51 -0000 Mailing-List: contact issues-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list issues@continuum.apache.org Received: (qmail 73539 invoked by uid 99); 14 Oct 2008 22:14:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Oct 2008 15:14:50 -0700 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 [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Oct 2008 22:13:44 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 0FF5614A8041 for ; Tue, 14 Oct 2008 17:13:51 -0500 (CDT) Message-ID: <9124502.1224022431046.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Tue, 14 Oct 2008 17:13:51 -0500 (CDT) From: "apache maillist (JIRA)" To: issues@continuum.apache.org Subject: [jira] Issue Comment Edited: (CONTINUUM-1606) All modules are always rebuilt when using M2 with a hierarchical structure MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/CONTINUUM-1606?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D150818= #action_150818 ]=20 apache.maillist edited comment on CONTINUUM-1606 at 10/14/08 5:12 PM: ---------------------------------------------------------------------- it would be very nice if you could test the case below: =95=09pom.xml ( o=09parentpom (parent pom for module1 and module2)=20 -- pom.xml o=09module1=20 -- pom.xml o=09module2 -- pom.xml =20 was (Author: apache.maillist): it would be very nice if you could test the case below: + pom.xml ( + parentpom (parent pom for module1 and module2)=20 +-- pom.xml + module1=20 +-- pom.xml + module2 +-- pom.xml =20 =20 > All modules are always rebuilt when using M2 with a hierarchical structur= e > -------------------------------------------------------------------------= - > > Key: CONTINUUM-1606 > URL: http://jira.codehaus.org/browse/CONTINUUM-1606 > Project: Continuum > Issue Type: Bug > Components: Integration - Maven 2 > Affects Versions: 1.1 > Reporter: Julien S > Priority: Critical > Fix For: 1.x > > Attachments: continuum-1.2.patch, CONTINUUM-1606.patch, continuum= .patch > > > When using Maven2, the recommended directory structure for a multi-module= build is hierarchical, e.g.: > - pom.xml (parent pom of all modules) > --- module1 > +-- pom.xml > --- module2 > +-- pom.xml > etc > When using such a structure with continuum, if a change is committed in m= odule28, then EVERY module will be rebuilt: indeed the parent pom will be r= ebuilt because the change is "under" its scm tree, and all the other module= s will therefore we rebuilt because of a "dependencies change" on the paren= t pom. This can easily multiply the build time by a factor of 10 or 20. > I have attached a patch. It considers that the parent has "changed" only = if its pom.xml has changed. Not sure it is perfect, but it works for me (th= e patch has been tested (against continuum-1.1 and trunk). Feel free to rew= rite or modify it as much as you like. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira