title: Pass properties to maven profile while running tests in intellij
body: <p>I have a maven pom with profiles. In one of those profiles I refer to a system variable like this </p>
  
  <pre><code>&lt;profile&gt;
      &lt;id&gt;kasper&lt;/id&gt;
      &lt;properties&gt;
          &lt;user&gt;${username}&lt;/user&gt;
      &lt;/properties&gt;
  &lt;/profile&gt;
  </code></pre>
  
  <p>When I invoke maven command line with the -Dusername=kasper all seems to be well. </p>
  
  <p>The thing is, I import this project in IntelliJ. IntelliJ 13 allows to select profiles with which to run, through the Maven Tool Window. </p>
  
  <p>When I select this specific profile to use while running tests,  I can't seem to find how to replace this property correctly, i.e. to really tell IntelliJ that it has to pick this or that user name to run my maven tests, I tried a bit of everything and it doesn't seem to pick ot up. </p>
  
  <p>Anybody an idea?</p>
  
  <p>Kasper</p>