Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6D15B200B62 for ; Fri, 12 Aug 2016 19:32:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6B749160AB0; Fri, 12 Aug 2016 17:32:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B030C160A85 for ; Fri, 12 Aug 2016 19:32:20 +0200 (CEST) Received: (qmail 49697 invoked by uid 500); 12 Aug 2016 17:32:19 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 49686 invoked by uid 99); 12 Aug 2016 17:32:19 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2016 17:32:19 +0000 Received: from desktop-2khsk44 (5248749D.cm-4-1b.dynamic.ziggo.nl [82.72.116.157]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id D5DF81A00A8 for ; Fri, 12 Aug 2016 17:32:18 +0000 (UTC) Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "Maven Developers List" Subject: Re: Profile Activation References: <10f60edd-fb27-d621-ea25-29b37e84121d@gmx.de> <1584040663.7370.1471021154804.JavaMail.www@wwinf1n01> Date: Fri, 12 Aug 2016 19:32:21 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Robert Scholte" Organization: Apache Software Foundation Message-ID: In-Reply-To: <1584040663.7370.1471021154804.JavaMail.www@wwinf1n01> User-Agent: Opera Mail/12.17 (Win64) archived-at: Fri, 12 Aug 2016 17:32:21 -0000 Hi, Yes, this is correct. Just to clarify: -Dx is always the same is -Dx=3Dt= rue = [1] I'd like to add -Dprofilea=3D : profile activated 5. mvn initialize -Dprofilea=3D : profile activated maybe if the property was called skipITs instead of profilea the example= s = are better to follow, i.e. always activate this profile (with = integration-tests), *unless* skipITs is true. Robert [1] = https://maven.apache.org/ref/3.3.9/maven-embedder/xref/org/apache/maven/= cli/MavenCli.html#L1544 On Fri, 12 Aug 2016 18:59:14 +0200, Guillaume Bou=E9 = = wrote: > Hi Robert, > > = > If this is expected, I think the documentation in = > http://maven.apache.org/guides/introduction/introduction-to-profiles.h= tml = > should indeed be clarified. Currently, in that situation, it says > > = > "The following profile will be activated when the system property = > "debug" is defined with a value which is not "true"." > > = > In this case, when invoking Maven with "mvn initialize", profilea isn'= t = > defined so I would expect the profile not to be activated. This is als= o = > what would happen if the value in the profile activation was commented= = > out. > > = > To recap, this is the current result with Maven 3.3.9 for this situati= on = > (and latest 3.4.0-SNAPSHOT): > > = > 1. mvn initialize: profile activated > > 2. mvn initialize -Dprofilea: profile not activated > > 3. mvn initialize -Dprofilea=3Dfalse: profile activated > > 4. mvn initialize -Dprofilea=3Dtrue: profile not activated > > = > Guillaume > > = > >> Message du 12/08/16 18:34 >> De : "Robert Scholte" >> A : "Maven Developers List" >> Copie =E0 : >> Objet : Re: Profile Activation >> >> Hi Karl Heinz, >> >> you should read the activation like this: >> always activate, *unless* profilea is true. >> So it says nothing about the availability of the property. >> Maybe the documentation isn't clear enough. >> >> Robert >> >> On Fri, 12 Aug 2016 17:45:21 +0200, Karl Heinz Marbaise >> wrote: >> >> > Hi to all, >> > >> > I have the following profile: >> > >> > >> > >> > profile-not-value-true >> > >> > >> > profilea >> > !true >> > >> > >> > >> > >> > >> > com.soebes.maven.plugins >> > echo-maven-plugin >> > >> > >> > initialize >> > >> > echo >> > >> > >> > >> > >> > >> > profile not value true >> > >> > >> > >> > >> > >> > >> > >> > So the question is: What would you expect you need to do to activat= e >> > this profile? >> > >> > Currently this profile is activated cause if I don't define the = >> property >> > "profilea" at all it seemed to that Maven is assuming this means "n= ot >> > value 'true'" ? >> > >> > I have assumed it should be activated if the property exists which = = >> means >> > giving it on command line like this: >> > >> > mvn -Dprofilea >> > >> > >> > >> > WDYT ? >> > >> > Kind regards >> > Karl Heinz Marbaise >> > >> > -------------------------------------------------------------------= -- >> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org >> > For additional commands, e-mail: dev-help@maven.apache.org >> >> ---------------------------------------------------------------------= >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org >> For additional commands, e-mail: dev-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org