OrientDB图形模式
我是OrientDB的新手。我有几个问题 在1中,我可以找到当前稳定版本的*.jar库列表,以访问OrientDB实例版本2.0.3。 我使用Java8OrientDB图形模式,orientdb,Orientdb,我是OrientDB的新手。我有几个问题 在1中,我可以找到当前稳定版本的*.jar库列表,以访问OrientDB实例版本2.0.3。 我使用Java8 I connect to Orient DB from Java Spring. In pom.xml I write such lines: <dependency> <groupId>com.orientechnologies</groupId> <artifactId>
I connect to Orient DB from Java Spring. In pom.xml I write such lines:
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-core</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orient-commons</artifactId>
<version>2.0-M1</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-enterprise</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-client</artifactId>
<version>2.0.2</version>
</dependency>
一切都正常,除非我添加库来处理实例,就像处理graph db一样
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-graphdb</artifactId>
<version>2.0.4</version>
</dependency>
如果我添加orientdb graphdb引用,我的代码以错误的方式工作,实际上在一个返回org.codehaus.jackson.node.ObjectNode对象的控制器中,该控制器失败。似乎在转换ObjectNode时发生了一些错误
2我无法在一个实例中同时使用OrientDB的文档和图形模型。要使用的*.jar文件以及版本
我认为,我的问题在于错误版本的jar文件的错误组合。您已经按照您的想象混合了这些版本。例如,您应该尝试将所有内容都设置为2.0.5 我也有同样的问题。。我必须根据存储库中的在线内容自己解决这个问题,但当我阅读过时文档中的指南时,最新的快照很难处理 这里是稳定的: 以下是快照: 您需要将此项作为依赖项: 面向对象技术 例如,在您的示例中,orientdb graphdb 2.0.4试图获取orientdb core 2.0.4,但其中已经存在orientdb core 2.0.0的依赖关系 您可以在pom.xml中拥有这样的存储库,尽管我认为有更好的方法来配置它们:
<repositories>
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
<repository>
<id>mvn-repository-com-artifacts</id>
<name>mvnrepository.com</name>
<url>http://mvnrepository.com/artifact/</url>
</repository>
</repositories>