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
         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
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.3</version>
        </plugin>

-- 
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

        

Reply via email to