我知道有一个类似的问题(问题:Neo4j Spatial: can't run spatial ),但是在安装依赖项时似乎解决了这个问题。我认为这不是我案件的解决方案。
安装Neo4j并安装maven后
$ brew install neo4j
$ brew install maven
创建一个名为spatial的目录并将neo4j-spatial克隆到此文件夹。
$ git clone https://github.com/neo4j-contrib/spatial.git
然后我试着安装这个git clone。
/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验证然而这似乎只是尝试再次构建插件返回相同的Build失败。
/spatial$ mvn verify
两个问题; - 我错过了依赖关系还是其他问题? - 如果我缺少依赖项,它们是什么以及如何安装它们?
提前致谢!
答案 0 :(得分:2)
测试依赖于构建环境的区域设置,因为它使用十进制数检查数字格式的结果,期望一个点作为小数分隔符:
" 100.00(10/10) - 完成测试"
您的语言环境使用逗号作为小数点分隔符,具体取决于报告的实际值:
" 10,00(1/10) - 正在运行测试"
您有两个选择:
在不运行测试的情况下构建项目:
mvn install -Dmaven.test.skip
更改构建的区域设置:
LANG=C mvn install
或
LANG=en_US mvn install