Reputation: 1927
Maven profile <activation>
block used to be a list of OR
statements until v3.2.2. However, once the http://jira.codehaus.org/browse/MNG-4565 was resolved it became a list of AND
statements e.g.:
<activation>
<activeByDefault>false</activeByDefault>
<os>
<name>linux</name>
</os>
<property>
<name>release</name>
<value>true</value>
</property>
</activation>
The following profile would be activated when the OS is linux AND the release
property is set to true
. The question is - how would it be possible to configure OR logic i.e. either OS is linux
OR release
property is set to true
for maven v3.2.2 and above ?
Upvotes: 5
Views: 1870
Reputation: 1927
For now it is not possible to configure OR
logic for maven profile activation (unless to copy-paste the profile, one with each of the 2 possible ways of activation):
Related JIRA issues:
Thanks to the @Tunaki and @Michael-O for their comments to the original question - more details can be found there
Upvotes: 2