title: Maven - Unable to set property value using profile based on property activation
body: <p>I am trying to set a maven property value based on another property that is sent through the command line. </p>
  
  <pre><code>&lt;profiles&gt;
    &lt;profile&gt;
      &lt;id&gt;desktop&lt;/id&gt;
          &lt;activation&gt;
             &lt;property&gt;
                 &lt;name&gt;environment&lt;/name&gt;
                 &lt;value&gt;desktop&lt;/value&gt;
             &lt;/property&gt;
          &lt;/activation&gt;
          &lt;properties&gt;
             &lt;qTest.testCycleId&gt;XXXXXX&lt;/qTest.testCycleId&gt;
          &lt;/properties&gt;
    &lt;/profile&gt;
  &lt;/profiles&gt;
  </code></pre>
  
  <p>When I try to use the <strong><em>qTest.testCycleId</em></strong> in one of the plugin like below, I am getting property not resolved error.</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
    &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
    &lt;executions&gt;
      &lt;execution&gt;
        &lt;id&gt;Upload Results to qTest&lt;/id&gt;
        &lt;phase&gt;post-integration-test&lt;/phase&gt;
        &lt;goals&gt;
          &lt;goal&gt;exec&lt;/goal&gt;
        &lt;/goals&gt;
        &lt;configuration&gt;
          &lt;executable&gt;${script.executor}&lt;/executable&gt;
            &lt;commandlineArgs&gt;${basedir}/scripts/qTest/QTestUploaderCucumber.sh
              ${basedir}
              ${qTest.testCycleId} ${qTest.projectId}
            &lt;/commandlineArgs&gt;
        &lt;/configuration&gt;
      &lt;/execution&gt;
    &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>PS - Property is resolved correctly if the profile is activated based on os family like below.</p>
  
  <pre><code>&lt;profile&gt;
    &lt;id&gt;Windows&lt;/id&gt;
    &lt;activation&gt;
      &lt;os&gt;
        &lt;family&gt;Windows&lt;/family&gt;
      &lt;/os&gt;
    &lt;/activation&gt;
    &lt;properties&gt;
       &lt;qTest.testCycleId&gt;XXXXXX&lt;/qTest.testCycleId&gt;
    &lt;/properties&gt;
  &lt;/profile&gt;
  </code></pre>
  
  <p><strong><em>Edit:</em></strong>
  As requested, please find the command line </p>
  
  <pre><code>mvn verify -DSUT=uat -Denvironment=desktop -DBrowser=chrome "-Dcucumber.options=--tags @Temp" -DforkCount=0 -e
  </code></pre>
  
  <p>Thanks in advance.</p>