atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Kantor (JIRA)" <>
Subject [jira] [Created] (ATLAS-304) surefire fails to run tests if maven project directory path has embedded space
Date Fri, 13 Nov 2015 22:22:10 GMT
David Kantor created ATLAS-304:

             Summary: surefire fails to run tests if maven project directory path has embedded
                 Key: ATLAS-304
             Project: Atlas
          Issue Type: Bug
            Reporter: David Kantor
            Assignee: David Kantor
            Priority: Minor

If the Atlas source is a directory with an embedded space (e.g. C:\temp\Atlas Source), running
"mvn install" or "mvn test" will fail when surefire attempts to run the tests.  The hadoop.tmp.dir
property value needs to be quoted to ensure the full pathname is included in the value and
not interpreted as multiple arguments.

The error looks something like:

Error: Could not find or load main class Source\incubator-atlas\repository\target.tmp-hadoop-dkantor

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test
(default-test) on project atlas-repository: ExecutionException: java.lang.RuntimeException:
The forked VM terminated without properly saying goodbye.VM crash or System.exit called?
[ERROR] Command was cmd.exe /X /C "C:\software\ibm-java-sdk-\jre\bin\java -Djava.awt.headless=true
-Dproject.version=0.6-incubating-SNAPSHOT -Dhadoop.tmp.dir=C:\temp\Atlas Source\incubator-atlas\repository\target/tmp-hadoop-dkantor
-Xmx1024m -XX:MaxPermSize=512m -Dlog4j.configuration=atlas-log4j.xml
referIPv4Stack=true -jar "C:\temp\Atlas Source\incubator-atlas\repository\target\surefire\surefirebooter719522114019830282.jar"
"C:\temp\Atlas Source\incubator-atlas\repository\target\surefire\surefire215598821283036484tmp"
"C:\temp\Atlas Source\incubator-atlas\repository\target\surefire\surefire_07228291279149081174tm

This message was sent by Atlassian JIRA

View raw message