gpt4 book ai didi

java - Neo4j-spatial Maven 构建失败

转载 作者:行者123 更新时间:2023-11-30 02:47:44 25 4
gpt4 key购买 nike

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

经过大量测试后,它返回“构建失败”

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

关于java - Neo4j-spatial Maven 构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39662849/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com