我知道有一个类似的问题(问题:https://stackoverflow.com/questions/18285080/neo4j-spatial-cant-run-spatial),但是在安装依赖项时,这个问题似乎得到了解决。我认为这不是解决我的问题的办法。
安装Neo4j和安装maven之后
$ brew install neo4j
$ brew install maven创建一个名为“空间”的目录,并将新4j空间复制到此文件夹中。
$ git clone https://github.com/neo4j-contrib/spatial.git然后我试着安装这个git克隆。
/spatial$ mvn install经过大量测试后,它返回了一个“构建失败”。
Results :
Failed tests:
ProgressLoggingListenerTest.testProgressLoggingListnerWithAllLogs:38->testProgressLoggingListenerWithSpecifiedWaits:62
Argument(s) are different! Wanted:
forwardingPrintStream.println(
"100.00 (10/10) - Completed test"
);
-> at org.neo4j.gis.spatial.ProgressLoggingListenerTest.testProgressLoggingListenerWithSpecifiedWaits(ProgressLoggingListenerTest.java:62)
Actual invocation has different arguments:
forwardingPrintStream.println(
"10,00 (1/10) - Running test"
);
-> at org.neo4j.gis.spatial.rtree.ProgressLoggingListener.lambda$new$1(ProgressLoggingListener.java:45)
ProgressLoggingListenerTest.testProgressLoggingListnerWithOnlyStartAndEnd:46->testProgressLoggingListenerWithSpecifiedWaits:62
Argument(s) are different! Wanted:
forwardingPrintStream.println(
"100.00 (10/10) - Completed test"
);
-> at org.neo4j.gis.spatial.ProgressLoggingListenerTest.testProgressLoggingListenerWithSpecifiedWaits(ProgressLoggingListenerTest.java:62)
Actual invocation has different arguments:
forwardingPrintStream.println(
"10,00 (1/10) - Running test"
);
-> at org.neo4j.gis.spatial.rtree.ProgressLoggingListener.lambda$new$1(ProgressLoggingListener.java:45)
Tests run: 146, Failures: 2, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:34 min
[INFO] Finished at: 2016-09-23T15:55:35+02:00
[INFO] Final Memory: 44M/558M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project neo4j-spatial: There are test failures.
[ERROR]
[ERROR] Please refer to /Volumes/Macintosh HD/Users/Tom/spatial/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException为了解决这个“构建失败”问题,我发现大多数maven安装错误都是由于依赖关系造成的。但是,这些错误消息并不表示缺少任何依赖项?
我尝试使用mvn验证,但是这似乎只是试图再次构建插件,返回相同的构建失败。
/spatial$ mvn verify 两个问题;-我是缺少依赖关系还是其他问题?-如果我缺少依赖项,它们是什么,以及如何安装它们?
提前感谢!
发布于 2016-09-23 14:38:28
测试取决于构建环境的区域设置,因为它使用十进制数字检查数字格式的结果,并期望一个点作为十进制分隔符:
"100.00 (10/10) -已完成的测试“
根据所报告的实际值,区域设置使用逗号作为十进制分隔符:
"10,00 (1/10) -运行试验“
你有两个选择:
https://stackoverflow.com/questions/39662849
复制相似问题