我有一个Grails 2.4.4应用程序,当我尝试通过the plugin安装Neo4j时,我明白了:
| Error Resolve error obtaining dependencies: Could not find artifact org.neo4j:neo4j-jdbc:jar:2.0.2 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: Could not find artifact org.neo4j:neo4j-jdbc:jar:2.0.2 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: Could not find artifact org.neo4j:neo4j-jdbc:jar:2.0.2 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
| Error Could not find artifact org.neo4j:neo4j-jdbc:jar:2.0.2 in grailsCentral (https://repo.grails.org/grails/plugins)
这是grails dependency-report
的相关输出:
+--- org.grails.plugins:neo4j:2.0.0-M02
| \--- org.grails:grails-datastore-gorm-neo4j:2.0.0-M02
| >>>> org.neo4j:neo4j-jdbc:2.0.2
| \--- org.neo4j:neo4j-community:2.0.3
| \--- org.neo4j:neo4j-kernel:2.0.3
| \--- org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1.1
| \--- org.neo4j:neo4j-lucene-index:2.0.3
| \--- org.apache.lucene:lucene-core:3.6.2
| \--- org.neo4j:neo4j-graph-algo:2.0.3
| \--- org.neo4j:neo4j-udc:2.0.3
| \--- org.neo4j:neo4j-graph-matching:2.0.3
| \--- org.neo4j:neo4j-cypher:2.0.3
| \--- org.neo4j:neo4j-cypher-commons:2.0.3
| \--- org.neo4j:neo4j-cypher-compiler-1.9:2.0.3
| \--- org.neo4j:neo4j-cypher-compiler-2.0:2.0.3
| \--- org.parboiled:parboiled-scala_2.10:1.1.6
| \--- org.parboiled:parboiled-core:1.1.6
| \--- net.sf.opencsv:opencsv:2.0
| \--- org.scala-lang:scala-library:2.10.3
| \--- org.neo4j:neo4j-jmx:2.0.3
| \--- org.grails:grails-datastore-gorm-plugin-support:2.0.7.RELEASE
| \--- org.grails:grails-datastore-web:2.0.7.RELEASE
(>>>> org.neo4j:neo4j-jdbc:2.0.2
行以红色突出显示。)
是否有其他版本的插件可以使用?还是Grails的新版本?或者我只需要更新版的咖啡?
答案 0 :(得分:2)
Neo4j JDBC驱动程序不能通过Maven central获得。相反,它可以在http://m2.neo4j.org/找到。所以你需要在repositories
中修改BuildConfig.groovy
}:
mavenRepo 'http://m2.neo4j.org/content/repositories/releases/'