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

你可能感兴趣的:(maven)