【问题标题】:sample spring data neo4j project downloaded from spring.io is throwing maven jar error从 spring.io 下载的示例 spring 数据 neo4j 项目抛出 maven jar 错误
【发布时间】:2015-08-04 08:03:18
【问题描述】:

我已经从以下位置下载了spring数据neo4j的rest代码

https://spring.io/guides/gs/accessing-neo4j-data-rest/

当我运行 maven 命令打包时,出现以下错误。

    [INFO]                                                                         
   [INFO]   ------------------------------------------------------------------------
   [INFO] Building gs-accessing-neo4j-data-rest 0.1.0
   [INFO] ------------------------------------------------------------------------
   Downloading: https://repo.maven.apache.org/maven2/org/neo4j/neo4j-cypher-dsl/2.0.1/neo4j-cypher-dsl-2.0.1.pom
   [WARNING] The POM for org.neo4j:neo4j-cypher-dsl:jar:2.0.1 is missing, no dependency information available
   Downloading: https://repo.maven.apache.org/maven2/org/neo4j/neo4j-cypher-dsl/2.0.1/neo4j-cypher-dsl-2.0.1.jar
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 6.861 s
   [INFO] Finished at: 2015-08-04T03:53:47-04:00
   [INFO] Final Memory: 14M/60M
   [INFO] ------------------------------------------------------------------------
   [ERROR] Failed to execute goal on project gs-accessing-neo4j-data-rest:  Could not resolve dependencies for project org.springframework:gs-accessing-neo4j-data-rest:jar:0.1.0: Could not find artifact org.neo4j:neo4j-cypher-dsl:jar:2.0.1 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

我不知道如何解决这个问题。谁能帮我解决这个问题。

【问题讨论】:

    标签: spring-data-neo4j


    【解决方案1】:

    将以下部分添加到 main pom.xml,以便 Maven 能够找到并下载丢失的工件:

    <repositories>
        <repository>
            <id>spring-releases</id>
            <name>Spring Releases</name>
            <url>https://repo.spring.io/libs-release</url>
        </repository>
        <repository>
            <id>neo4j</id>
            <name>Neo4j</name>
            <url>http://m2.neo4j.org/</url>
        </repository>
    </repositories>
    

    【讨论】:

      猜你喜欢
      • 2018-07-27
      • 2018-12-01
      • 1970-01-01
      • 2013-09-08
      • 2013-10-11
      • 2014-06-14
      • 2021-06-16
      • 1970-01-01
      • 2013-11-22
      相关资源
      最近更新 更多