Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C0A5B912A for ; Thu, 7 Mar 2013 00:01:47 +0000 (UTC) Received: (qmail 85712 invoked by uid 500); 7 Mar 2013 00:01:45 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 85457 invoked by uid 500); 7 Mar 2013 00:01:45 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 85448 invoked by uid 99); 7 Mar 2013 00:01:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 00:01:45 +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 warnero@gmail.com designates 209.85.217.174 as permitted sender) Received: from [209.85.217.174] (HELO mail-lb0-f174.google.com) (209.85.217.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 00:01:38 +0000 Received: by mail-lb0-f174.google.com with SMTP id l12so6177375lbo.33 for ; Wed, 06 Mar 2013 16:01:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=qSeBsVCovfQ3p+bBEWagx0021Dgkqc0BjwhQ/1I/at0=; b=tX2VK2v/Wh9+1RCyZYBC6iCDfuScB+lrcPISdu2VlkDNtbGK4IH8fKCzSryhzMwBVF GfXDdTszLRAvzNmnHRKhFXeVtdG8tRaeDS/f9eMfNuDDue/G7FAuMJrez0OjucWC97fb l0ehakr0pfPDK2srqMz9Xm5pOMLgLuoHbsiLgZmn5OPlpkfp5sifU7v28I4DLe2tSzZv FlLS+GLZKAd2AWNgNW3/A2b3cJCXU5v5p5/LCDVaLxktPVU3iH22DN83sI9NMzSysa4t bGPHEvmfrSU86jafV1mb54QLC2LL6ANN+yg4uDDfNbN5QcaEaoECojylyTtkHqELW3Dn MZIA== MIME-Version: 1.0 X-Received: by 10.152.105.38 with SMTP id gj6mr26439480lab.25.1362614477655; Wed, 06 Mar 2013 16:01:17 -0800 (PST) Received: by 10.112.111.74 with HTTP; Wed, 6 Mar 2013 16:01:17 -0800 (PST) Date: Wed, 6 Mar 2013 17:01:17 -0700 Message-ID: Subject: multi-module lifecycle question From: Warner Onstine To: users@maven.apache.org Content-Type: multipart/alternative; boundary=f46d0408d3f7e8121004d74a6776 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0408d3f7e8121004d74a6776 Content-Type: text/plain; charset=ISO-8859-1 Hi all, been working with a multi-module build that has the following characteristics: - All sub-modules have the parent pom as their parent - I have Integration tests setup as their own module - parent pom has profiles for specific environments setup In the parent pom I have the a plugin bound to the prepare-package phase and inherit marked to false (I only want the plugin to run once at the end of the build, or once before another phase starts). The behavior I am seeing though is this: - Run mvn package -D profileName - it executes my plugin at the top-level first - Then it proceeds to compile and run the tests on each of the sub-modules - It never runs my plugin again What I expected to happen: - Compile each sub-module - Run the tests on each sub-module - See the prepare-package at the root level (because it now hit that phase) - Run package on each sub-module I'm not clear as to why the build is doing all the phases within each module rather than phase-first then module. Is there an easy/clean way to do this? The solution I have come up with so far is either - turn inherit to true and it will run my plugin for each module (bad) - Move my specific phase stuff into each module that may need it for each profile (pain in the ass) Other ideas? -warner --f46d0408d3f7e8121004d74a6776--