the canonical documentation for that should be 
http://maven.apache.org/ref/3-LATEST/maven-model/maven.html#class_activation 
IMHO

and yes, AND seems the right choice

Regards,

Hervé

Le mardi 10 juin 2014 18:25:28 Jason van Zyl a écrit :
> I'm working on a PR for http://jira.codehaus.org/browse/MNG-4565, which is
> related to what happened in http://jira.codehaus.org/browse/MNG-3106 in
> that profiles with multiple activators undergo an OR instead of an AND.
> 
> If you want OR behaviour you can specify multiple profiles each with a
> single activator for the condition you want satisfied. It doesn't make any
> sense to OR multiple activators within a single profile because it's
> impossible to require multiple conditions to met for a profile to be
> activated.
> 
> The Sonatype book is not our canonical documentation for Maven but has the
> only reference I can find describing the logic for multiple activators
> within a profile and it describes activators being AND'd:
> 
> http://books.sonatype.com/mvnref-book/reference/profiles-sect-activation.htm
> l#profiles-sect-activation-config
> 
> At the cost of potentially having to duplicate a profile to get OR behavior,
> at least it's possible to have AND behaviour with multiple activators being
> AND'd. In it's current form profile activation makes it impossible to do
> often required.
> 
> Unless anyone objects I'm going to process 
> http://jira.codehaus.org/browse/MNG-4565 and make multiple activators be
> AND'd. It's just been implemented incorrectly.
> 
> Thanks,
> 
> Jason
> 
> ----------------------------------------------------------
> Jason van Zyl
> Founder,  Apache Maven
> http://twitter.com/jvanzyl
> http://twitter.com/takari_io
> ---------------------------------------------------------
> 
> To do two things at once is to do neither.
> 
>  -- Publilius Syrus, Roman slave, first century B.C.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to