maven 报错找不到Could not find artifact maven-plugins:maven-cobertura-plugin:plugin:1.3
来源:互联网 发布:linux服务器宕机 编辑:程序博客网 时间:2024/06/07 15:56
Failed to execute goal on project : Could not resolve dependencies for project cs2c.nkscloudweb:nkscloudweb3:war:3.0: The following artifacts could not be resolved: maven-plugins:maven-cobertura-plugin:plugin:1.3, maven-plugins:maven-findbugs-plugin:plugin:1.3.1: Could not find artifact maven-plugins:maven-cobertura-plugin:plugin:1.3 in nexus (http://10.1.81.221:8081/nexus/content/groups/public) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project nkscloudweb3: Could not resolve dependencies for project cs2c.nkscloudweb:nkscloudweb3:war:3.0: The following artifacts could not be resolved: maven-plugins:maven-cobertura-plugin:plugin:1.3, maven-plugins:maven-findbugs-plugin:plugin:1.3.1: Could not find artifact maven-plugins:maven-cobertura-plugin:plugin:1.3
一直报错这个,我查了,没有引用这两个依赖呀。
之后增加了 mvn compile -X -e 增加了DEBUG信息,可以查到:
[DEBUG] dom4j:dom4j:jar:1.6.1:compile
[DEBUG] xml-apis:xml-apis:jar:1.0.b2:compile
[DEBUG] org.jdom:jdom:jar:1.1.2:compile
[DEBUG] jaxen:jaxen:jar:1.1.3:compile
[DEBUG] jdom:jdom:jar:1.0:compile
[DEBUG] xerces:xercesImpl:jar:2.6.2:compile
[DEBUG] xom:xom:jar:1.0:compile
[DEBUG] xerces:xmlParserAPIs:jar:2.6.2:compile
[DEBUG] xalan:xalan:jar:2.6.0:compile
[DEBUG] com.ibm.icu:icu4j:jar:2.6.1:compile
[DEBUG] maven-plugins:maven-cobertura-plugin:plugin:1.3:compile
[DEBUG] cobertura:cobertura:jar:1.8:compile
[DEBUG] oro:oro:jar:2.0.8:compile
[DEBUG] commons-jelly:commons-jelly-tags-log:jar:1.0:compile
[DEBUG] maven-plugins:maven-findbugs-plugin:plugin:1.3.1:compile
[DEBUG] findbugs:bcel:jar:5.1:compile
[DEBUG] findbugs:coreplugin:jar:1.0.0:compile
[DEBUG] findbugs:findbugs:jar:1.0.0:compile
原来是dom4j引用的,修改修改它的版本就可以了吧,或者增加类似这样的说明:
<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>
- maven 报错找不到Could not find artifact maven-plugins:maven-cobertura-plugin:plugin:1.3
- Maven 报:Could not find artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3
- Maven 报:Could not find artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3
- Failure to find maven-plugins:maven-cobertura-plugin:plugin:1.3
- maven错误:Failure to find maven-plugins:maven-cobertura-plugin:plugin:1.3
- Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1
- 解决报错 Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6
- maven install 报错Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plug
- maven install 报错Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plug
- eclipse创建maven项目报Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.
- Maven Cobertura Plugin集成
- cobertura-maven-plugin用法
- Maven Cobertura Plugin集成
- Could not find goal 'create' in plugin org.apache.maven.plugins:maven-archetype-plugin:3.0.0 among
- Eclipse中Maven新建web项目报错Could not calculate build plan:Plugin org.apache.maven.plugins...
- cobertura-maven-plugin插件 maven
- maven自建maven 报Could not find artifact
- maven使用命令创建项目失败[ERROR] Could not find goal 'create' in plugin org.apache.maven.plugins:maven-archety
- 常用SAP术语
- SQLSERVER中的全局变量
- 图像分割 之 分水岭算法
- Android:实现隐藏应用功能(续)
- 编写及调试PL/SQL
- maven 报错找不到Could not find artifact maven-plugins:maven-cobertura-plugin:plugin:1.3
- ListCtrl用法
- Linux下C程序编译过程
- Java中split方法如何分割\
- mysql的地址是172.16.5.129,怎样访问
- 判断IP合法
- Linux 防火墙 开端口
- 数据仓库之视图
- 游戏资源网站