Neo4j-spatial maven 构建失败

Neo4j-spatial maven build failure

我知道有一个类似的问题(问题: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

然后我尝试通过 Maven 安装这个 git 克隆。

/spatial$ mvn install

经过大量测试returns一个"Build failure"

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(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(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

在我解决这个问题的过程中 "Build failure" 我发现大多数 maven 安装错误都是由依赖项引起的。但是这些错误消息并不表示缺少任何依赖项?

我尝试使用 mvn verify 但这似乎只是试图再次构建插件,返回相同的构建失败。

/spatial$ mvn verify 

两个问题; - 我是缺少依赖关系还是其他问题? - 如果我缺少依赖项,它们是什么以及如何安装它们?

提前致谢!

测试取决于构建环境的区域设置,因为它会检查使用十进制数字格式化的结果,期望一个点作为小数点分隔符:

"100.00 (10/10) - Completed test"

根据报告的实际值,您的语言环境使用逗号作为小数点分隔符:

"10,00 (1/10) - Running test"

您有 2 个选择:

  • 在没有 运行 测试的情况下构建项目:

    mvn install -Dmaven.test.skip
    
  • 更改构建的语言环境:

    LANG=C mvn install
    

    LANG=en_US mvn install