Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0.8
-
Fix Version/s: 3.x / Backlog
-
Component/s: Profiles
-
Labels:None
-
Number of attachments :
Description
The pom model should be changed to allow multiple properties to activate a profile. So the profile activation section could look something like this:
<activation> <properties> <my-prop-1>some-value</my-prop-1> <my-prop-2>another-value</my-prop-2> </properties> </activation>
This would provide more flexibility in profile activation.
Issue Links
| This issue is duplicated by: | ||||
| MNG-1753 | support improved property based profile activation |
|
|
|
| This issue relates to: | ||||
| MNG-4565 | Multiple profile activation conditions does not work |
|
|
|
| This issue is related to: | ||||
| MNG-4516 | Contradiction between the documentation and Maven's behavior related to profile-activation with multiple criteria |
|
|
|
| MNG-4565 | Multiple profile activation conditions does not work |
|
|
|
| MNG-3106 | Multiple profile activation conditions broken |
|
|
|
| MNG-1753 | support improved property based profile activation |
|
|
|
Maybe adding support for boolean operators would be nice. Here is an example:
—
<activation>
<and>
<property><name>prop-1</name></property>
<property><name>prop-2</name></property>
<property><name>prop-3</name></property>
<or>
<property><name>prop-4</name></property>
<not>
<property><name>prop-5</name></property>
</not>
<property><name>prop-6</name></property>
<os>MacOS</os>
</or>
</and>
</activation>
—