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

profile activation by property doesn't work with properties defined in settings.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 3.0-beta-1
    • Component/s: POM, Profiles
    • Labels:
      None

      Description

      Activating a profile like below doesn't get activated unless the property is set on the CLI. I need to have the property defined in the settings.xml so it's always set.
      <profiles>
      <profile>
      <id>prod</id>
      <activation>
      <property>
      <name>deploy-ct</name>
      </property>
      </activation>

      Further, I noticed that if I set it so that the activation is like:
      <activation>
      <property>
      <name>deploy-ct</name><value>true</value>
      </property>
      </activation>

      The profile is triggered just by setting the cli like "mvn -Ddeploy-ct" It is not active if I use "-Ddeploy-ct=false" but the settings descriptor says that the existence of the property is only used if value is not set.

        Attachments

        1. mng-2276.zip
          1 kB
          Benjamin Bentmann

          Issue Links

            Activity

              People

              • Assignee:
                bentmann Benjamin Bentmann
                Reporter:
                brianf Brian Fox
              • Votes:
                15 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: