environmentVariables does not work with windows -----------------------------------------------
Key: MSUREFIRE-49 URL: http://jira.codehaus.org/browse/MSUREFIRE-49 Project: Maven 2.x Surefire Plugin Type: Bug Versions: 2.1.2 Environment: windows Reporter: Dan Tran Fix For: 2.1.2 MSUREFIRE-44 added environmentVariables fields to all additional environment variables to be added to when forking the test It works on UNIX but not windows. Suspect it is platform specific problem for windows in plexus-util's cli library Here is the plugin configuration to reproduce the problem <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <environmentVariables> <key>value</key> </environmentVariables> <forkMode>once</forkMode> </configuration> </plugin> and the stack trace is .... [[DEBUG] Adding to surefire test classpath: c:\dev\maven\maven-2.0.2\core\plexus- utils-1.1.jar Environment: key=value added. java -classpath "C:\Documents and Settings\dtran\.m2\repository\org\apache\maven \surefire\surefire-booter\1.5.3-SNAPSHOT\surefire-booter-1.5.3-SNAPSHOT.jar;c:\d ev\maven\maven-2.0.2\core\plexus-utils-1.1.jar" org.apache.maven.surefire.Surefi reBooter C:\dev\maven\src\surefire\surefire [INFO] ------------------------------------------------------------------------- --- [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------- --- [INFO] There are some test failure. [INFO] ------------------------------------------------------------------------- --- [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: There are some test fail ure. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: There are some test f ailure. at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:404) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:531) ... 16 more [INFO] ------------------------------------------------------------------------- --- [INFO] Total time: 4 seconds [INFO] Finished at: Sat Jan 21 10:18:59 PST 2006 [INFO] Final Memory: 3M/6M [INFO] ------------------------------------------------------------------------- --- -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]