You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Garret Wilson (Jira)" <ji...@apache.org> on 2022/10/22 20:51:00 UTC

[jira] [Created] (MNG-7577) Ability to activate profile based on multiple property values

Garret Wilson created MNG-7577:
----------------------------------

             Summary: Ability to activate profile based on multiple property values
                 Key: MNG-7577
                 URL: https://issues.apache.org/jira/browse/MNG-7577
             Project: Maven
          Issue Type: Improvement
          Components: Core
    Affects Versions: 3.8.6
            Reporter: Garret Wilson


There is no way I can see to activate a profile based on multiple properties. (This could almost be considered a bug.) For example:

{code:xml}
  <activation>
    <property>
      <name>foo</name>
    </property>
    <property>
      <name>bar</name>
    </property>
  </activation>
{code}

This was mentioned two years ago [in a comment|https://issues.apache.org/jira/browse/MNG-4565?focusedCommentId=17100501&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17100501] when MNG-4565 was addressed; the following is not possible:

{code:xml}
  <activation>
    <property>
      <name>!skipTests</name>
    </property>
    <property>
      <name>!skipITs</name>
    </property>
  </activation>
{code}

This is similar to MNG-5909.

It's of limited use to have logical AND working (MNG-4565) if we can't have multiple things of the same type to have an AND condition on.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)