title: Pass JVM args to maven surefire, conditional on build Java version?
body: <p>Is there a way that I can pass this <code>argLine</code> configuration to the maven-surefire plugin ONLY when <code>&lt;jdk.version&gt;1.7&lt;/jdk.version&gt;</code> is configured for Java <strong>1.7</strong>  but NOT when a user changes the <code>pom.xml</code> to be configured for java <strong>1.8</strong>?</p>
  
  <p>The reason being that Java <strong>1.8</strong> doesn't have permgen space.</p>
  
  <pre><code>&lt;argLine&gt;-Xmx1024m -XX:MaxPermSize=256m&lt;/argLine&gt;
  </code></pre>