title: Maven releaseProfiles not applied when activeByDefault profile exists
body: <p>I have (simplified for SO purposes) maven configuration as follows:</p>
  
  <ul>
  <li>2 profiles DEV and PROD where DEV is <em>activeByDefault</em> so if I just make a SNAPSHOT build or build from command line I will have DEV configuration. The profile are mutual exclusive - they set the same set of properties.</li>
  </ul>
  
  <blockquote>
  <pre><code>   &lt;profile&gt;
       &lt;activation&gt;
         &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
        &lt;/activation&gt;
        &lt;id&gt;DEV&lt;/id&gt;
        &lt;properties&gt;
          &lt;some.property&gt;devSpecific&lt;/some.property&gt;
        &lt;/properties&gt;
      &lt;/profile&gt;
  
      &lt;profile&gt;
        &lt;id&gt;PROD&lt;/id&gt;
        &lt;properties&gt;
          &lt;some.property&gt;prodSpecific&lt;/some.property&gt;
        &lt;/properties&gt;
      &lt;/profile&gt;
  </code></pre>
  </blockquote>
  
  <ul>
  <li>Now I set my release plugin to activate the PROD profile since whenever I do release I want a PROD release.</li>
  </ul>
  
  <blockquote>
  <pre><code>&lt;plugin&gt;
    &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
    &lt;version&gt;2.2.2&lt;/version&gt;
    &lt;configuration&gt;
      &lt;releaseProfiles&gt;EU-PROD&lt;/releaseProfiles&gt;
      &lt;goals&gt;deploy assembly:assembly&lt;/goals&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  </blockquote>
  
  <p>So I thought the release plugin will activate the PROD profile here so the <em>activeByDefault</em> will not apply.</p>
  
  <p>But with release I am still getting DEV package - the DEV profile was activated. Where did I go wrong in my assumptions?</p>
  
  <p>Thanks</p>