You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by sebb <se...@gmail.com> on 2010/05/19 17:48:00 UTC
Use profile to define property which is used in another profile
activation
A profile (A) can be automatically activated by a property (P).
A profile (B) can also define a property (P).
So if profile B is activated it will define property P.
Will this then always activate profile A?
Seems to me that this will depend on the order in which profiles are processed.
Is this order documented and guaranteed, or might it change?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Use profile to define property which is used in another profile
activation
Posted by Stephen Connolly <st...@gmail.com>.
profile activation by properties is activation by _SYSTEM_PROPERTIES_ (i.e.
-Dname=value on the CLI)
so properties defined in the pom will never trigger the profile activation.
so profile b being active will never trigger profile A.
-Stephen
On 19 May 2010 16:48, sebb <se...@gmail.com> wrote:
> A profile (A) can be automatically activated by a property (P).
>
> A profile (B) can also define a property (P).
>
> So if profile B is activated it will define property P.
>
> Will this then always activate profile A?
>
> Seems to me that this will depend on the order in which profiles are
> processed.
>
> Is this order documented and guaranteed, or might it change?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>