我正在使用 gradle,需要将最新的 Spring Data Neo4j 引入我的项目。
我的构建文件包括 -
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 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
非常感谢任何帮助。
最佳答案
Maven Central 中 neo4j-cypher-dsl
的最新版本是 1.7(很容易在 http://search.maven.org 上找到)。如果您需要 1.9,则必须声明包含该版本的存储库。您的(第二个)存储库声明无效,因为 URL 不指向 Maven 存储库,而是指向该存储库中的特定 Maven 模块。
关于java - 无法将 spring-data-neo4j :2. 3.1.RELEASE 与 Gradle 一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19484122/