新建maven项目,pom文件报错
来源:互联网 发布:mysql的sql语句 编辑:程序博客网 时间:2024/05/17 04:47
在IDE中新建maven项目,pom文件报错!
bug描述:
Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.10 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be
reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.10
from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-
surefire-plugin-2.10.pom
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile)
- CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-
compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failure to transfer org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1 from http://repo.maven.apache.org/
maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer
artifact org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/
org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler-manager-1.8.1.jar
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-
compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failure to transfer org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1 from http://repo.maven.apache.org/
maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer
artifact org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/
org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler-manager-1.8.1.jar
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile)
解决方案:
这个bug是因为选用的maven版本过高了,从官网上下载一个较低版本(本人选用的是3.0.5)就可以解决这个问题了!
- 新建maven项目,pom文件报错
- 新建maven项目pom报错
- 新建MAVEN项目--pom.xml报错
- 新建maven项目pom.xml报错
- 新建maven项目pom报错的问题
- 新建maven项目pom.xml报错解决办法
- maven项目pom文件报错
- java新建maven项目后pom.xml文件报错:Failure to transfer xpp3:xpp3_min:pom:1.1.4c from...
- eclipse新建maven工程pom文件报错解决
- eclipse中新建web项目,pom文件报错
- 新建maven 项目将pom.xml中<packaging>值改为pom报错
- maven pom 文件报错
- Eclipse 创建maven项目pom文件报错解决方案
- 导入maven项目pom.xml文件报错
- 导入maven项目pom.xml文件报错
- eclipse导入maven项目pom文件报错
- maven web项目pom.xml文件头部报错
- maven项目pom.xml文件报错failOnMissingWebXml
- 大数相乘算法
- 找不到min和max标识符--C++中头文件次序问题
- "Warning: OS async I/O limit 128 is lower than recovery batch 1024" in Alert log (文档 ID 471846.1)
- javascript正则表达式语法
- 自己项目中用struts menu 实现的菜单+权限管理
- 新建maven项目,pom文件报错
- ANTLR——安装配置
- 【读书笔记】A primer on scientific programming with python
- 百度地图的调用,动态,有标识
- Java中Random函数的总结
- 每天学一点 -- CCriticalSection临界区
- hash表的实现
- 九度OnlineJudge题目1176:树查找
- VS2010/MFC编程入门之二十三(常用控件:列表框控件ListBox)