Maven 配置文件激活 - 如何定义几个激活条件

Maven profile activation - how to define several conditions for activations

Maven 配置文件 <activation> 块在 v3.2.2 之前曾经是 OR 语句的列表。但是,一旦 http://jira.codehaus.org/browse/MNG-4565 得到解决,它就变成了 AND 语句的列表,例如:

        <activation>
            <activeByDefault>false</activeByDefault>
            <os>
               <name>linux</name>
            </os>
            <property>
                <name>release</name>
                <value>true</value>
            </property>
         </activation>

当 OS 为 linux ANDrelease 属性 设置为 true。问题是 - 如何配置 OR 逻辑,即 OS 是 linux OR release 属性 对于 maven v3.2.2 及更高版本设置为 true ?

目前无法为 Maven 配置文件激活配置 OR 逻辑(除非复制粘贴配置文件,使用 2 种可能的激活方式中的每一种):

相关的 JIRA 问题:

Thanks to the @Tunaki and @Michael-O for their comments to the original question - more details can be found there