Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.6-incubating
-
None
-
None
Description
If the Atlas source pathname has 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 on the java command line.
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""