`

Failure to find maven-plugins:maven-cobertura-plugin:plugin:1.3

阅读更多

今天用maven构建项目时出现个问题,编译打包时,提示如下

Failure to find maven-plugins:maven-cobertura-plugin:plugin:1.3

 

搞了好久最后在stackoverflow中找到了答案,原来是 jaxen-1.1.3引用了cobertura,于是

在项目pom中做如下配置

<dependency>
			<groupId>jaxen</groupId>
			<artifactId>jaxen</artifactId>
			<version>1.1.3</version>
			<exclusions>
				<exclusion>
					<artifactId>maven-cobertura-plugin</artifactId>
					<groupId>maven-plugins</groupId>
				</exclusion>
				<exclusion>
					<artifactId>maven-findbugs-plugin</artifactId>
					<groupId>maven-plugins</groupId>
				</exclusion>
			</exclusions>
</dependency>

 问题得到解决,另外改动版本号估计也可行,还没试

 

stackoverflow地址:

http://stackoverflow.com/questions/8374250/maven-dependencies-cant-be-resolved

0
0
分享到:
评论
1 楼 ka520 2012-06-01  
给力啊,兄弟。你帮我解决了大问题!

相关推荐

Global site tag (gtag.js) - Google Analytics