[
http://jira.codehaus.org/browse/SUREFIRE-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92746
]
Steve Lewis commented on SUREFIRE-310:
--
Thanks for taking a moment to look at this Brett.
Just to make this explicit, I reported it as a Windows bug because it doesn't
occur in a *nix environment.
I thought I made this clear but can see that I did leave that unsaid.
> surefire-reports failes to locate java, returns "There are test failures."
> --
>
> Key: SUREFIRE-310
> URL: http://jira.codehaus.org/browse/SUREFIRE-310
> Project: Maven Surefire
> Issue Type: Bug
> Components: report plugin
>Affects Versions: 2.3.1
> Environment: Windows, Sun JDK 1.5 u10, environment variables include:
> "JAVA_HOME = C:\Program Files\Java\jdk1_5"
>Reporter: Steve Lewis
>Priority: Critical
> Fix For: 2.3.1
>
> Attachments: execution_error.txt
>
>
> When the JAVA_HOME environment variable includes spaces, surefire-reports
> execution failes to locate java
> Partial error below, full error in context is available in attachment.
> Forking command line: "C:\Program Files\Java\jdk1.5.0_10\jre\bin\java"
> -classpath [...]
> 'C:\Program' is not recognized as an internal or external command,
> operable program or batch file.
> [INFO]
>
> [ERROR] BUILD FAILURE
> [INFO]
>
> [INFO] There are test failures.
> [INFO]
>
> This is similar to behavior the gwt-maven plugin experienced a little while
> back,
> http://groups.google.com/group/gwt-maven/browse_thread/thread/b8ccf7896b0f65f0/df999ee333246567%23df999ee333246567
> WORKAROUNDS:
> Either changing JAVA_HOME to not use spaces
> such as "c:\progra~1\java\jdk1_5"
> Explicitly use a previous version of the maven-surefire-plugin
> such as
>
> maven-surefire-plugin
> 2.3
>
--
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