[
http://jira.codehaus.org/browse/MPTEST-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukas Theussl updated MPTEST-63:
--------------------------------
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.
was:
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.
Fix Version/s: (was: 1.8.1)
> Memory leak in test plugin 1.8?
> -------------------------------
>
> Key: MPTEST-63
> URL: http://jira.codehaus.org/browse/MPTEST-63
> Project: maven-test-plugin
> Issue Type: Bug
> Affects Versions: 1.8
> Environment: Linux FC3, jdk 1.4.2_10, m11b3
> Reporter: Lukas Theussl
> Priority: Critical
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira