maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laredotornado-3 <>
Subject Can Maven recover from OutOfMemoryErrors during JUnit test runs?
Date Fri, 03 May 2013 16:44:05 GMT

I'm using Maven 3.0.3.  Is it possible to configure Maven or the Surefire
plugin to recover from OutOfMemoryErrors?  I notice with my JUnit tests, if
one test from file A fails with an "OutOfMemoryError," all subsequent tests
in my Maven Junit run (even those from different files) fail with
OutOfMemoryErrors.  When I run the files in isolation (e.g.
"-Dtest=FileATest"), the test runs fine. 

I'm using the Surefire 2.14.1:


Thanks for any wisdom, - Dave

Here's an example of one of the OutOfMemoryErrors …

Exception in thread "Poller SunPKCS11-Darwin" java.lang.OutOfMemoryError:
Java heap space
        at Method)

View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message