From continuum-issues-return-6-apmail-maven-continuum-issues-archive=maven.apache.org@maven.apache.org Tue Dec 18 09:36:27 2007 Return-Path: Delivered-To: apmail-maven-continuum-issues-archive@locus.apache.org Received: (qmail 76534 invoked from network); 18 Dec 2007 09:36:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2007 09:36:27 -0000 Received: (qmail 86517 invoked by uid 500); 18 Dec 2007 09:36:17 -0000 Delivered-To: apmail-maven-continuum-issues-archive@maven.apache.org Received: (qmail 86494 invoked by uid 500); 18 Dec 2007 09:36:17 -0000 Mailing-List: contact continuum-issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-dev@maven.apache.org Delivered-To: mailing list continuum-issues@maven.apache.org Received: (qmail 86483 invoked by uid 99); 18 Dec 2007 09:36:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2007 01:36:17 -0800 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, 18 Dec 2007 09:35:55 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 938A1162000A for ; Tue, 18 Dec 2007 03:35:58 -0600 (CST) Message-ID: <5894954.1197970558601.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Tue, 18 Dec 2007 03:35:58 -0600 (CST) From: "Julien S (JIRA)" To: continuum-issues@maven.apache.org Subject: [jira] Created: (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: 7bit X-Virus-Checked: Checked by ClamAV on apache.org All modules are always rebuilt when using M2 with a hierarchical structure -------------------------------------------------------------------------- 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 Attachments: 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 module28, then EVERY module will be rebuilt: indeed the parent pom will be rebuilt because the change is "under" its scm tree, and all the other modules will therefore we rebuilt because of a "dependencies change" on the parent 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 (the patch has been tested (against continuum-1.1 and trunk). Feel free to rewrite or modify it as much as you like. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira