2016-06-28 287 views
4

我试图从pom.xml下面的存储库中获取依赖关系。找不到org.neo4j的依赖关系:neo4j-cypher-dsl:jar:2.0.1

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
    http://maven.apache.org/xsd/maven-4.0.0.xsd"> 

    <modelVersion> 4.0.0 </modelVersion> 
    <groupId> com.tp.neo4j </groupId> 
    <artifactId> springdata-neo4j </artifactId> 
    <version> 1.0 </version> 

    <dependencies> 
     <dependency> 
      <groupId> org.springframework.data </groupId> 
      <artifactId> spring-data-neo4j </artifactId> 
      <version> 3.1.2.RELEASE </version> 
     </dependency> 
    </dependencies> 
</project> 

下载了除org.neo4j:neo4j-cypher-dsl:jar:2.0.1之外的所有依赖项。并显示下面的错误。

[INFO] Building springdata-neo4j 1.0 
[INFO] ------------------------------------------------------------------------ 
[WARNING] The POM for org.neo4j:neo4j-cypher-dsl:jar:2.0.1 is missing, no dependency information available 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 11.409s 
[INFO] Finished at: Tue Jun 28 13:07:07 IST 2016 
[INFO] Final Memory: 6M/153M 
[INFO] ------------------------------------------------------------------------ 
[ERROR]Failed to execute goal on project springdata-neo4j: Could not resolve dependencies for project com.tp.neo4j:springdata-neo4j:jar:1.0: Failure to find org.neo4j:neo4j-cypher-dsl:jar:2.0.1 in https://maven......../repositories/core-releases was cached in the local repository, resolution will not be reattempted until the update interval of core-releases has elapsed or updates are forced -> [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 

我试过排除相同。但仍然没有工作。

  <exclusions> 
       <exclusion> 
        <groupId>org.neo4j</groupId> 
        <artifactId>neo4j-cypher</artifactId> 
       </exclusion> 
      </exclusions> 

我删除了\.m2\repository\org\neo4j文件夹并重试。还是行不通。我注意到neo4j-cypher-dsl有2.0.1版本,但几乎所有其他版本都有2.2.5。我想知道,为什么在核心版本中只有一个依赖项缺失。

回答

0

为什么你使用这样的旧版本?这几乎就像2年过时了?

您将不得不将m2.neo4j.org作为maven存储库添加到您的存储库部分。

+0

它工作'弹簧数据的Neo4j \t \t \t 4.0.0.RELEASE'。但是现在在'org.springframework.data.neo4j.repository.GraphRepository'上显示编译错误。 '导入组织架构不能解决'。 – NaaN

+0

添加'<库> \t \t \t \t \t 弹簧释放 \t \t \t 弹簧释放 \t \t \t https://repo.spring.io/libs-release \t \t \t \t \t \t \t Neo4j的 \t \t \t Neo4j的 \t \t \t http://m2.neo4j.org/ \t \t \t'。同样的错误。 – NaaN

+0

升级版本时可以发布异常吗?你应该考虑使用这个版本并且关注这个版本,以便找出错误,而不是像Michael所说的那样使用这个旧版本。 – Apostolos