title: Activation of maven profile based on multiple properties
body: <p>I am creating a maven 2 build for a project and I came up with profiles since the build has to be created for both different locations (say Berlin, Paris, North Pole) and different environment (Development, Production). Those are specified via properties. So for "North Pole" "DEV" I do:</p>
  
  <pre><code>-Dlocation=NorthPole -Denvironment=DEV
  </code></pre>
  
  <p>Now I would like to acivate my porfile based on both these properties, not just one. So I tried following:</p>
  
  <pre><code>&lt;profiles&gt;
    &lt;profile&gt;
      &lt;id&gt;NOrth Pole DEV&lt;/id&gt;
      &lt;activation&gt;
        &lt;property&gt;
          &lt;name&gt;location&lt;/name&gt;
          &lt;value&gt;NorthPole&lt;/value&gt;
        &lt;/property&gt;
        &lt;property&gt;
          &lt;name&gt;environment&lt;/name&gt;
          &lt;value&gt;DEV&lt;/value&gt;
        &lt;/property&gt;
      &lt;/activation&gt;
      ... &lt;!-- Set some North Pole DEV specific stuff --&gt;
    &lt;/profile&gt;
  &lt;/profiles&gt;
  </code></pre>
  
  <p>This doesn't work, maven expect to see <em>at most</em> one <code>&lt;property&gt;</code> element there.</p>
  
  <p>Please note I have another use for the properties as well so making it single property <code>locationEnv</code>of value <code>NorthPole-DEV</code> isn't what I want to have.</p>
  
  <p>So is there any way or workaround or whatever else how to activate an profile based on combination of properties?</p>