Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7577

Ability to activate profile based on multiple property values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.8.6
    • None
    • Core
    • None

    Description

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

        <activation>
          <property>
            <name>foo</name>
          </property>
          <property>
            <name>bar</name>
          </property>
        </activation>
      

      This was mentioned two years ago in a comment when MNG-4565 was addressed; the following is not possible:

        <activation>
          <property>
            <name>!skipTests</name>
          </property>
          <property>
            <name>!skipITs</name>
          </property>
        </activation>
      

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              garretwilson Garret Wilson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: