【发布时间】:2016-06-28 07:48:11
【问题描述】:
我试图从 pom.xml 下方给出的存储库中获取依赖项。
<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。我想知道,为什么核心版本中只缺少一个依赖项。
【问题讨论】:
标签: neo4j maven-3 spring-data-neo4j