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 123411185F for ; Fri, 29 Aug 2014 18:28:50 +0000 (UTC) Received: (qmail 50351 invoked by uid 500); 29 Aug 2014 18:28:47 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 50255 invoked by uid 500); 29 Aug 2014 18:28:47 -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 50242 invoked by uid 99); 29 Aug 2014 18:28:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Aug 2014 18:28:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of khmarbaise@gmx.de designates 212.227.17.22 as permitted sender) Received: from [212.227.17.22] (HELO mout.gmx.net) (212.227.17.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Aug 2014 18:28:41 +0000 Received: from Karl-Heinzs-MacBook-Pro.local ([217.247.18.39]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MYcJi-1XslHN3kFm-00VLbB for ; Fri, 29 Aug 2014 20:28:19 +0200 Message-ID: <5400C643.4080006@gmx.de> Date: Fri, 29 Aug 2014 20:28:19 +0200 From: Karl Heinz Marbaise Reply-To: info@soebes.de User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Maven Users List Subject: Re: Create multi-module archetype with one module only active in a profile References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:4LWY6KPUG/r8dH6wc8fXTyymNMtV5MhGtaxW/HVTP69BDbGSnba yJHzO1kLbsXZvus7xbZOsMA8m1Ji+CrylYQEv/eX7PNxg5AgUoxHb0hAO+OgX62XwQm7yEv C1bSpntJOne6M3paSFuOfTq/jnUW5HRPTkqq7x8HPXjHYm0k9Z4MnjvYOWX0krdxD1tO/Q9 4TAceFbZp0Y1L0Ov8R69w== X-UI-Out-Filterresults: notjunk:1; X-Virus-Checked: Checked by ClamAV on apache.org Hi, > > I am trying to create an archetype with two modules, one main and one itest. > I would like to have the itest module only active when run with a profile. > > In my original project, the root pom includes a part like this: > > > > itest > > itest > > > > > However, in the archetype-metadata.xml reference there is nothing mentioned > about profiles. First do never create a module which is included by a profile, cause you will get trouble... In particular if you do a release and afterwards doing a build and activate the profile... Take a deeper look here:http://blog.soebes.de/blog/2013/11/09/why-is-it-bad-to-activate-slash-deactive-modules-by-profiles-in-maven/ Kind regards Karl-Heinz Marbaise --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org