We have a big issue with surefire 2.12 (using default configuration, which means forkMode=once): the Junit tests of the first module pass perfectly, then we have a "Z,0,BYE!" in the log and the surefire plugin fails with:
The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
It seems related to the following code, taken from maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java:
runSuitesInProcess( testSet, testClassLoader, startupConfiguration, providerConfiguration );
System.exit( 0 );
This happens at every run, just reverting surefire to 2.11 fixes the issue. If I use forkMode=never, it works, but our code needs a forked VM, otherwise we have SecurityManager issues.
The surefire configuration itself is very basic:
Attached is the full build log with -X.