SDN 4 - InProcessServer 在快照构建中损坏 [英] SDN 4 - InProcessServer broken in snapshot build
本文介绍了SDN 4 - InProcessServer 在快照构建中损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大约一周前,在 4.0.0.BUILD-SNAPSHOT 上使用 InProcessServer 运行测试会导致以下异常:
Since about a week ago, running tests with InProcessServer on 4.0.0.BUILD-SNAPSHOT results in the following exception:
Caused by: java.lang.NoClassDefFoundError: org/neo4j/ogm/testutil/TestServer
at org.springframework.data.neo4j.server.InProcessServer.<init>(InProcessServer.java:25) ~[spring-data-neo4j-4.0.0.BUILD-SNAPSHOT-tests.jar:na]
at com.ninjasquare.server.test.integration.IntegrationTestConfig.neo4jServer(IntegrationTestConfig.java:43) ~[test-classes/:na]
将测试依赖项切换回 4.0.0.M1 可以解决问题:
Swithing the test dependency back to 4.0.0.M1 resolves the issue:
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<version>4.0.0.M1</version>
<type>test-jar</type>
</dependency>
我认为这与 SDN4/OGM 上的一些重构工作有关?
I assume it's something to do with some refactoring work on SDN4/OGM?
谢谢.
推荐答案
是的,在最近的快照中,OGM 已与 SDN 分离.您现在需要包含这两个依赖项才能使用测试实用程序.
Yes, in recent snapshots, the OGM has been separated from SDN. You'll need to include these two dependencies now to use the test utilities.
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm</artifactId>
<version>1.1.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j.test</groupId>
<artifactId>neo4j-harness</artifactId>
<version>${neo4j.version}</version>
<scope>test</scope>
</dependency>
这篇关于SDN 4 - InProcessServer 在快照构建中损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文