maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <>
Subject MNG-3106 implemented profile activation incorrectly
Date Tue, 10 Jun 2014 22:25:28 GMT
I'm working on a PR for, which is related to what
happened in 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:

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 and make
multiple activators be AND'd. It's just been implemented incorrectly.



Jason van Zyl
Founder,  Apache Maven

To do two things at once is to do neither.
 -- Publilius Syrus, Roman slave, first century B.C.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message