title: Maven: profile properties not be picked up when running test
body: <p>In pom.xml, I define a property:</p>
  
  <pre><code> &lt;profile&gt;
              &lt;id&gt;local&lt;/id&gt;
              &lt;properties&gt;
                  &lt;build.profile.id&gt;local&lt;/build.profile.id&gt;
                  &lt;serverBaseUrl&gt;http://127.0.0.1:8080&lt;/serverBaseUrl&gt;
              &lt;/properties&gt;
              &lt;activation&gt;
                  &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
              &lt;/activation&gt;
          &lt;/profile&gt;
  </code></pre>
  
  <p>And the <code>serverBaseUrl</code> was referenced in file application-email.xml:</p>
  
  <pre><code>&lt;bean id="MailService" class="someclass"&gt;
          &lt;property name="aurl" value="${serverBaseUrl}"/&gt;
  
      &lt;/bean&gt;
  </code></pre>
  
  <p>I expect that, when running test, using IntelliJ IDEA or using Maven test, ${serverBaseUrl} can be pick up from pom.xml automatically. However, it does not work like what I expect.</p>
  
  <p>When not running test, the thing works exactly what I expect.</p>
  
  <p>What's the problem here? Does maven or IntelliJ IDEA won't pick up profile properties when running test by default? How can I pick up profile's properties when I running the test?</p>
  
  <p>Currently, I have a workaround: Define <code>serverBaseUrl=xxx</code> in config.properties and the property is picked up. This is a little ugly what I want to avoid.</p>