On Tue, Mar 5, 2013 at 10:46 AM, Rod Widdowson <span dir="ltr"><<a href="mailto:rdw@steadingsoftware.com" target="_blank">rdw@steadingsoftware.com</a>></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>
"mvn site"?<br>
<br>
I just tried to get code coverage by running the "mvn site -P release" 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 ? -> [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'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'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> <groupId>org.apache.maven.plugins</groupId></div><div> <artifactId>maven-surefire-plugin</artifactId></div>
<div> <version>2.11</version></div><div> <configuration></div></div><div> <argLine>-Xms1g -Xmx2g -XX:PermSize=256m -XX:MaxPermSize=256m</argLine></div><div> ...</div>
<div><br></div><div>--DF</div><div><br></div></div>