我试图编译maven web项目。
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws</artifactId>
<version>3.0.5-FINAL</version>
</dependency>问题是,当我尝试编译它时,我会得到以下错误:
错误未能在项目InferX-d2aserver上执行目标:无法解决项目com.ferx: inferx-d2aserver: war:4.0的依赖关系:无法解决下列工件: maven-plugins:maven-cobertura-plugin:plugin:1.3,maven-plugins:maven-findbugs-plugin:plugin:1.3.1,org.springframework.ws:spring-ws:jar:3.0.5.RELEASE:未能在http://repository.springsource.com/maven/bundles/release中找到maven-plugins:maven-cobertura-plugin:plugin:1.3被缓存在本地存储库中,在com.springsource.repository.bundles.release的更新间隔已过或更新被迫使用->帮助1之前,不会重新尝试解析。
我使用Apache 3.0.3,Java: 1.7.0OS: Windows 7 (64位)
发布于 2011-11-30 22:54:24
我不确定这是否是相同的情况,因为我的依赖项是不同的。对于相同的依赖项错误,我得到了类似的错误消息,因此我从~/.m2/repository/jaxen/jaxen/1.1.3/jaxen-1.1.3.pom中删除了这两个依赖项,并且该项目现在编译良好。
发布于 2015-07-13 10:09:17
我也面临着类似的问题。我把jaxen从Jdom的依赖中排除在外,这对我很有帮助。
jdom 1.1.2包含Jaxen1.1.3,它导入这些工件的。
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom</artifactId>
<version>1.1.2</version>
<exclusions>
<exclusion>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
</exclusion>
</exclusions>
</dependency>发布于 2011-11-28 12:01:57
看起来您的pom或父pom包含了maven-coberatura-plugin的错误定义,应该首先修复它。此外,删除本地存储库中的文件夹。
https://stackoverflow.com/questions/8295458
复制相似问题