Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.8
-
Fix Version/s: 1.8.2
-
Labels:None
-
Environment:Linux FC3, jdk 1.4.2_10, m11b3
-
Number of attachments :
Description
In a project with ~40 test classes, I was surprised to see 'maven dist-bin' fail with a
java.lang.reflect.InvocationTargetException
Exception in thread "main" java.lang.OutOfMemoryError
when running the junit test suite, even though, the tests pass when running just 'maven test'. The point is that dist-bin runs the test suite twice (once from jar:jar,once from site:generate), and it's only the second time that it fails. I can reproduce it with a simple custom goal:
<goal name="test-twice">
<attainGoal name="test:test"/>
<attainGoal name="test:test"/>
</goal>
It works by simply downgrading to test-plugin-1.7, so it's not a problem with my tests.
Attached patch seems to solve the issue (and also
MPTEST-64), need to test and confirm.