2013-10-20 27 views
1

我在使用gradle,需要将最新的Spring Data Neo4j引入到我的项目中。无法使用spring-data-neo4j:2.3.1.RELEASE和Gradle

我的构建文件包括 -

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

我的问题似乎是相同的,因为这一个:

Unable to use Neo4j 1.9.M05

这一个:

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

当我运行'gradle build'即可以下错误:

* 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 

任何帮助,非常感谢。

回答

0

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

0

感谢彼得,我能得到的构建脚本权利,它指向替代回购:

maven{ 
    url 'http://m2.neo4j.org/content/repositories/releases' 
} 
相关问题