On Tue, Mar 5, 2013 at 10:46 AM, Rod Widdowson <span dir="ltr">&lt;<a href="mailto:rdw@steadingsoftware.com" target="_blank">rdw@steadingsoftware.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Anyone of the devs out there understand the magicke involved with running<br>
&quot;mvn site&quot;?<br>
<br>
I just tried to get code coverage by running the &quot;mvn site -P release&quot; and<br>
it just blew away maven complaining that something called System.exit().<br>
<br>
[ERROR] Failed to execute goal<br>
org.apache.maven.plugins:maven-site-plugin:3.1:site (default-site) on<br>
project idp-attribute-resolver-impl: failed to get report for<br>
org.codehaus.mojo:cobertura-maven-plugin: Failed to execute goal<br>
org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on<br>
project idp-attribute-resolver-impl: Execution default-test of goal<br>
org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The<br>
forked VM terminated without saying properly goodbye. VM crash or<br>
System.exit called ? -&gt; [Help 1]<br>
<br>
I thought it might be something I had added so I reverted all my new code<br>
and it still fails.  (it is always attribute-resolution-impl that fails,<br>
other subprojects are fine).<br>
<br>
If I have to I&#39;ll swap in all this stuff and do the diagnosis, but it would<br>
be loads faster if someone knew what was going on under the hood....<br></blockquote><div><br></div><div>I haven&#39;t seen this specifically, but most of my strange surefire problems have been cured by increasing JVM heap size.</div>

<div>Since surefire tests typically fork a new JVM, you have to set the heap size in the configuration block:</div><div><br></div><div><div>        &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;</div><div>        &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;</div>

<div>        &lt;version&gt;2.11&lt;/version&gt;</div><div>        &lt;configuration&gt;</div></div><div>          &lt;argLine&gt;-Xms1g -Xmx2g -XX:PermSize=256m -XX:MaxPermSize=256m&lt;/argLine&gt;</div><div>          ...</div>

<div><br></div><div>--DF</div><div><br></div></div>