从 spring.io 下载的示例 spring 数据 neo4j 项目抛出 maven jar 错误

sample spring data neo4j project downloaded from spring.io is throwing maven jar error

我已经从以下位置下载了 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

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

将以下部分添加到主 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>