title: Cannot access properties set in Maven's pom.xml, System.getProperty returns always null
body: <p>I try to set up properties in my pom.xml and access them during my jUnit test.
  The class I want to read them in, is imported by the jUnit <code>Test.java</code> and is using
  <code>String prop = System.getProperty("target1");</code>
  but it always is null. What I tried in my pom.xml already:</p>
  
  <pre class="lang-xml prettyprint-override"><code>...
  &lt;profiles&gt;
      &lt;profile&gt;
          &lt;id&gt;default&lt;/id&gt;
          &lt;activation&gt;
              &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
          &lt;/activation&gt;
          &lt;properties&gt;
              &lt;target1&gt;2948&lt;/target1&gt;
          &lt;/properties&gt;
      &lt;/profile&gt;
  &lt;/profiles&gt;
  </code></pre>
  
  <p></p>
  
  <p>and also</p>
  
  <pre class="lang-xml prettyprint-override"><code>...
  &lt;plugin&gt;
     &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
     &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
     &lt;version&gt;2.15&lt;/version&gt;
     &lt;systemPropertyVariables&gt;
        &lt;target2&gt;2948&lt;/target2&gt;
     &lt;/systemPropertyVariables&gt;
     &lt;systemProperties&gt;
       &lt;property&gt;
          &lt;name&gt;target3&lt;/name&gt;
          &lt;value&gt;2948&lt;/value&gt;
       &lt;/property&gt;
     &lt;/systemProperties&gt;
  ...
  &lt;/configuration&gt;
  ...     
  </code></pre>
  
  <p>I do have a parent pom.xml but that can't be the problem can it?
  I'm using Netbeans and starting the Tests by hiting "Test File" on the pom.xml</p>
  
  <p>Thanks yous :)</p>