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 C9621865B for ; Fri, 26 Aug 2011 08:27:34 +0000 (UTC) Received: (qmail 48315 invoked by uid 500); 26 Aug 2011 08:27:32 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 47688 invoked by uid 500); 26 Aug 2011 08:27:25 -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 47654 invoked by uid 99); 26 Aug 2011 08:27:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2011 08:27:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of stephen.alan.connolly@gmail.com designates 74.125.82.171 as permitted sender) Received: from [74.125.82.171] (HELO mail-wy0-f171.google.com) (74.125.82.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2011 08:27:16 +0000 Received: by wyh13 with SMTP id 13so2846521wyh.30 for ; Fri, 26 Aug 2011 01:26:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Clx50eEQAfeyQPl/ISEJTdwlSrNV9FOMdv2FKRP3kV0=; b=c0OuZ20hlG1DCPB+mAdA5HK53eHregfucBXDsAZb8qauFosaOaeRk0YmuR4TeMjRrm pwC4CHzq/hBbFiE1D8WCpPK+qid9V5q42q7o2P6KnyIRqF/I8dMk1mWzcvOFuUE0VgKf leGAyeDgaI9I3o21bh8uSzFroJRl+b3QRLpp0= MIME-Version: 1.0 Received: by 10.227.202.70 with SMTP id fd6mr621766wbb.114.1314347215985; Fri, 26 Aug 2011 01:26:55 -0700 (PDT) Received: by 10.227.39.21 with HTTP; Fri, 26 Aug 2011 01:26:55 -0700 (PDT) In-Reply-To: References: <1314241197011-4732786.post@n5.nabble.com> <1314258375443-4733452.post@n5.nabble.com> <1314340798812-4737199.post@n5.nabble.com> Date: Fri, 26 Aug 2011 09:26:55 +0100 Message-ID: Subject: Re: Multi modules and profiles From: Stephen Connolly To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I am wondering if the OP is hitting the "must have a named profile in the aggregation root" that I have observed, but not determined whether it is a bug or a feature. If I have a multi-module project and one module 'web' has a profile called "run". mvn -Prun clean install -f web/pom.xml will activate the "run" profile mvn -Prun clean install does not seem to activate the "run" profile unless I put an empty profile called "run" in the root of aggregation Now of course I'm doing some seriously fancy sh1t and the above is simplified, so it might not be that clear-cut... but none the less, I am wondering if the OP is seeing something like that On 26 August 2011 08:16, Wayne Fay wrote: >> The mysql-test profile is to test the dao layer, layer that is found in the >> "core" module. >> >> So, this mysql-test profile should sit in the "core" pom file. >> >> Otherwise, some of this profile properties would not be found in another >> "view" module. > > So remind us again, what is the problem you are trying to solve, what > have you done so far, and why did that not work? I'm lost. You should > be able to just copy profiles and properties around and make things > work trivially. > > Wayne > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org