1

I'm using gradle and need to bring the latest Spring Data Neo4j into my project.

My build file includes -

repositories {   
      mavenCentral()

      maven{
          url 'http://m2.neo4j.org/content/repositories/releases/org/neo4j/neo4j-cypher-dsl/1.9.M04'
      }
}

dependencies {
     compile 'org.springframework.data:spring-data-neo4j:2.3.1.RELEASE'
}

My question seems almost the same as this one:

Unable to use Neo4j 1.9.M05

and this one:

Unable to find neo4j-cypher-dsl version 1.9.M04 anywhere

When I run 'gradle build' I get the following error:

* What went wrong:
Could not resolve all dependencies for configuration ':runtime'.
Could not find org.neo4j:neo4j-cypher-dsl:1.9.
      Required by:
         :my_project > org.springframework.data:spring-data-neo4j:2.3.1.RELEASE

Any help is much appreciated.

4

2 回答 2

0

多亏了彼得,我才能够正确地构建脚本并将其指向替代存储库:

maven{
    url 'http://m2.neo4j.org/content/repositories/releases'
}
于 2013-10-21T00:46:03.167 回答
0

Maven Central 中的最新版本是 1.7(在http://search.maven.orgneo4j-cypher-dsl上很容易找到)。如果您需要 1.9,则必须声明一个包含该版本的存储库。您的(第二个)存储库声明无效,因为 URL 未指向 Maven 存储库,而是指向该存储库中的特定 Maven 模块。

于 2013-10-20T23:49:15.493 回答