【问题标题】:Is the Neo4j plugin broken or is Grails 2.4.4?Neo4j 插件坏了还是 Grails 2.4.4 坏了?
【发布时间】:2015-04-25 16:28:14
【问题描述】:

我有一个 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?还是我只需要更新版本的咖啡?

【问题讨论】:

    标签: database grails neo4j grails-plugin


    【解决方案1】:

    Neo4j JDBC 驱动程序无法通过 Maven 中心获得。相反,它可以在http://m2.neo4j.org/ 上找到。所以你需要repositories闭包BuildConfig.groovy修正:

    mavenRepo 'http://m2.neo4j.org/content/repositories/releases/'
    

    【讨论】:

    • 这给了我:Error Could not find artifact org.neo4j:neo4j-community:zip:2.0.3 in m2_neo4j_org_releases (http://m2.neo4j.org/releases) | Run 'grails dependency-report' for further information.
    猜你喜欢
    • 2011-07-21
    • 1970-01-01
    • 1970-01-01
    • 2022-09-30
    • 2020-07-26
    • 1970-01-01
    • 2013-08-15
    • 2018-12-22
    • 1970-01-01
    相关资源
    最近更新 更多