Ilya Buziuk Ilya Buziuk - 11 months ago 62
Java Question

Maven profile activation - how to define several conditions for activations

Maven profile

block used to be a list of
statements until v3.2.2. However, once the was resolved it became a list of
statements e.g.:


The following profile would be activated when the OS is linux AND the
property is set to
. The question is - how would it be possible to configure OR logic i.e. either OS is linux
property is set to
for maven v3.2.2 and above ?

Answer Source

For now it is not possible to configure ORlogic 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