Maven pom.xml缺少依赖性错误:无法解析工件

时间:2017-02-07 13:26:35

标签: java maven neo4j

即使经过多次干净安装后,这个错误也不会消失。并重新导入pom.xml&#39>

[ERROR] Failed to execute goal on project foo: 
Could not resolve dependencies for project be.foo:foo:jar:2.0-SNAPSHOT: 
The following artifacts could not be resolved: 
org.neo4j:neo4j-spatial:jar:0.12-neo4j-2.0.4, 
diff_match_patch:diff_match_patch:jar:current:

Failure to find org.neo4j:neo4j-spatial:jar:0.12-neo4j-2.0.4 in 
https://repo.spring.io/libs-release was cached in the local repository,
resolution will not be reattempted until the update interval of spring-releases has elapsed or updates are forced -> [Help 1]

虽然pom明显具有依赖性:

    <dependency>
        <groupId>org.neo4j</groupId>
        <artifactId>neo4j-spatial</artifactId>
        <version>0.12-neo4j-2.0.4</version>
    </dependency>

最奇怪的是,我甚至认为我的项目中没有这个,它只是开始抱怨它。

到目前为止,我猜测它与某种版本不匹配有关吗?

"diff_match_patch" etc

1 个答案:

答案 0 :(得分:2)

如果您转到日志中显示的网址,您会看到该库不存在。您可能需要更改版本或设置不同的回购。