No problem for me. While you are at it, the Maven Release notes on the
website (if it exists yet for the upcoming version) should probably get a
"compatibility issue" note about this.


Cheers,
Paul


On Tue, Jun 10, 2014 at 5:25 PM, Jason van Zyl <ja...@takari.io> wrote:

> 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.html#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.
>
>
>
>
>
>
>
>
>
>

Reply via email to