You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2006/04/30 00:43:51 UTC

svn commit: r398250 - /maven/plugins/trunk/maven-surefire-plugin/src/site/apt/howto.apt

Author: brett
Date: Sat Apr 29 15:43:50 2006
New Revision: 398250

URL: http://svn.apache.org/viewcvs?rev=398250&view=rev
Log:
[MSUREFIRE-57] document linkage errors
Submitted by: Ben Gidley

Modified:
    maven/plugins/trunk/maven-surefire-plugin/src/site/apt/howto.apt

Modified: maven/plugins/trunk/maven-surefire-plugin/src/site/apt/howto.apt
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-surefire-plugin/src/site/apt/howto.apt?rev=398250&r1=398249&r2=398250&view=diff
==============================================================================
--- maven/plugins/trunk/maven-surefire-plugin/src/site/apt/howto.apt (original)
+++ maven/plugins/trunk/maven-surefire-plugin/src/site/apt/howto.apt Sat Apr 29 15:43:50 2006
@@ -89,6 +89,31 @@
 </project>
 -----
 
+ You may need to fork due to an issue with java.lang.LinkageError: loader constraints violated when linking
+ system classes - e.g. javax.*. If this happens you need to fork and you need to disable childDelegation.
+
+----
+<project>
+  ...
+  <build>
+    ...
+
+    <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <forkMode>once</forkMode>
+          <testFailureIgnore>true</testFailureIgnore>
+          <childDelegation>false</childDelegation>
+        </configuration>       
+
+      </plugin>
+  ...
+  </build>
+  ...
+</project>
+----
+
 * Tests Inclusion and Exclusion
 
   The following are the sample test classes.