当我尝试构建我的项目并包含Neo4j-rest-graphdb依赖项时,构建失败。我尝试了几个不同的版本,结果相同。
我在我的依赖项中包含了org.neo4j。
我真正想做的就是使用我的java代码轻松访问图形本地数据库。
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GraphDatabaseConnector 0.1
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.neo4j:neo4j-rest-graphdb:jar:2.0.0-SNAPSHOT is missing
, no dependency information available
[WARNING] The POM for org.neo4j:neo4j:jar:2.0.0-SNAPSHOT is missing, no dependen
cy information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.375s
[INFO] Finished at: Sun Nov 24 22:56:58 CET 2013
[INFO] Final Memory: 4M/122M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project GraphDatabaseConnector: Could not reso
lve dependencies for project se.morkeleb:GraphDatabaseConnector:jar:0.1: The fol
lowing artifacts could not be resolved: org.neo4j:neo4j-rest-graphdb:jar:2.0.0-S
NAPSHOT, org.neo4j:neo4j:jar:2.0.0-SNAPSHOT: Failure to find org.neo4j:neo4j-res
t-graphdb:jar:2.0.0-SNAPSHOT in http://m2.neo4j.org was cached in the local repo
sitory, resolution will not be reattempted until the update interval of neo has
elapsed or updates are forced -> [Help 1]
谢谢
答案 0 :(得分:5)
更改依赖项以使用特定的Neo4j版本,而不是快照版本。快照未可靠发布,不建议用于应用程序开发。
只有在您将更改提交到 Neo4j时才应使用快照,而不是基于 Neo4j构建应用程序。
干杯, 安德烈亚斯
答案 1 :(得分:3)
我实际上是指向一个不包含我想要使用的版本的错误存储库。
我添加
后<repository>
<id>neo4j-release-repository</id>
<name>Neo4j Maven 2 release repository</name>
<url>http://m2.neo4j.org/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
当我使用里程碑6时,它很好。