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 7B5A811BFF for ; Fri, 29 Aug 2014 20:12:36 +0000 (UTC) Received: (qmail 17769 invoked by uid 500); 29 Aug 2014 20:12:34 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 17674 invoked by uid 500); 29 Aug 2014 20:12:34 -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 17651 invoked by uid 99); 29 Aug 2014 20:12:34 -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 20:12:34 +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.20 as permitted sender) Received: from [212.227.17.20] (HELO mout.gmx.net) (212.227.17.20) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Aug 2014 20:12:29 +0000 Received: from Karl-Heinzs-MacBook-Pro.local ([217.247.16.44]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MVayZ-1XwJhH18gx-00YvtV for ; Fri, 29 Aug 2014 22:12:08 +0200 Message-ID: <5400DE97.2080209@gmx.de> Date: Fri, 29 Aug 2014 22:12:07 +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: users@maven.apache.org Subject: Re: Create multi-module archetype with one module only active in a profile References: <5400C643.4080006@gmx.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:jUfTk/FHapLbXYYkVCVKucOdaLWxsrm50hzpDU6ghDZrbFw2bSl KO6sE0mfExxrUNi5P8HeOgcScP1C/axcs23/Dhl53Z3Z57IaRAdKLr043vnAo+xi6rBZWnR xlSXLc5qMZBOy6vRGfgmZLUZhDcsb4uxzOT8hpTmHysveP8ojy9stcGAmK365Z7gMqJ+MgH EWtw1V7RGL/4ZbVOkvE1A== X-UI-Out-Filterresults: notjunk:1; X-Virus-Checked: Checked by ClamAV on apache.org Hi, a simple solution is to make such a module (sounds like an integration test module) just the profile inside the module so the execution of the integration tests is activated/deactivated by a profile things like maven-failsafe-plugin or whatever... This prevent problems with releases etc. Kind regards Karl-Heinz Marbaise On 8/29/14 9:15 PM, Thomas Larsson wrote: > Thanks Karl, > > This seems like the sensible thing to do, and yes, we have already > encountered the headache of keeping the submodules version number in > sync after a release :-) > > Perhaps this should have been obvious. Thanks for the help anyway! > /Thomas > > > On Fri, Aug 29, 2014 at 8:28 PM, Karl Heinz Marbaise > wrote: > > 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/ > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org