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

Profile activation does not work if more than 1 type of activation is present

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Won't Fix
    • 3.2.2
    • None
    • None

    Description

      When a profile has more than 1 activation, according to the documentation 1 match is enough to activate a profile:

      Activation occurs when one or more of the specified criteria have been met. When the first positive result is encountered, processing stops and the profile is marked as active.

      Since Maven 3.2.2 this does not work. For instance with the following activation code:

                  <activation>
                      <file>
                          <exists>${env.JBOSS_HOME}/server/development</exists>
                      </file>
                      <property>
                          <name>assembly</name>
                      </property>
                  </activation>
      

      The profile only gets activated if both the directory is present and the propery is specified. If we remove the property from the configuration, the profile is activated based on the directory

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            salandur Jeroen Ruijgers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment