You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "David Kantor (JIRA)" <ji...@apache.org> on 2015/11/13 23:22:10 UTC

[jira] [Created] (ATLAS-304) surefire fails to run tests if maven project directory path has embedded space

David Kantor created ATLAS-304:
----------------------------------

             Summary: surefire fails to run tests if maven project directory path has embedded space
                 Key: ATLAS-304
                 URL: https://issues.apache.org/jira/browse/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-7.1.3.1\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 -Djava.net.p
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
p""



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)