I got hit by this myself recently. I need to investigate whether
surefire can be improved to pick up the JDK endorsed classes when
forking, as it really should. It should at least be a FAQ on the
surefire plugin, and cobertura should refer to it.
- Brett
Gordon Henriksen wrote:
On Apr 26, 2006, at 8:09 PM, Carlos Sanchez wrote:
Check
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html,
childDelegation option
Minutes too late! Found http://jira.codehaus.org/browse/MSUREFIRE-81…
Agreed with the reporter…
For any others, the fix is thus:
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <!-- Makes 'mvn test' crash (or not) consistent with an
instrumented run. -->
+ <forkMode>once</forkMode>
+ <!-- The fix. -->
+ <childDelegation>false</childDelegation>
+ </configuration>
</plugin>
— G
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]