title: How to activate profile by means of maven property?
body: <p>I'm trying to activate a maven profile using a property defined inside <code>pom.xml</code>:</p>
  
  <pre><code>&lt;project&gt;
    [...]
    &lt;properties&gt;
      &lt;run.it&gt;true&lt;/run.it&gt;
    &lt;/properties&gt;
    [...]
    &lt;profiles&gt;
      &lt;profile&gt;
        &lt;activation&gt;
          &lt;property&gt;&lt;name&gt;run.it&lt;/name&gt;&lt;/property&gt;
        &lt;/activation&gt;
        [...]
      &lt;/profile&gt;
    &lt;/profiles&gt;
    [...]
  &lt;/project&gt;
  </code></pre>
  
  <p>Apparently it doesn't work. However, activation works from the command line:</p>
  
  <pre><code>mvn -Drun.it
  </code></pre>
  
  <p>Is it "by design"? If it is, what is a possible workaround?</p>