You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2007/02/23 08:06:32 UTC

[jira] Updated: (SUREFIRE-100) environmentVariables does not work with windows

     [ http://jira.codehaus.org/browse/SUREFIRE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated SUREFIRE-100:
----------------------------------

    Fix Version/s:     (was: 2.3)
                   2.4

> environmentVariables does not work with windows
> -----------------------------------------------
>
>                 Key: SUREFIRE-100
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-100
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 1.5.2 (2.1.2 plugin), 2.0 (2.2 plugin)
>         Environment: windows 
>            Reporter: Dan Tran
>             Fix For: 2.4
>
>         Attachments: MSUREFIRE-49.log
>
>
> 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