Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.8.1
-
Fix Version/s: 2.9
-
Component/s: Maven Surefire Plugin
-
Labels:None
-
Complexity:Intermediate
-
Patch Submitted:Yes
-
Number of attachments :
Description
If the useMandifestOnlyJar=false, then then jnuit won't run on windows because the classpath is to long. The better way to fork a java process is to set the CLASSPATH env variable instead of passing it on the command line.
This patch fixes the issue.
Index: src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkConfiguration.java
===================================================================
— src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkConfiguration.java (revision 1092789)
+++ src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkConfiguration.java (working copy)
@@ -221,13 +221,13 @@
}
else
cli.setWorkingDirectory( workingDirectory.getAbsolutePath() );
According to http://support.microsoft.com/?kbid=830473, this solution should help for all but the most antique windows versions.