maven 菜鸟级问题--连接不到中央库

来源:互联网 发布:linux ftp限制ip访问 编辑:程序博客网 时间:2024/06/07 03:32


0

maven 菜鸟级问题--连接不到中央库5

不知有没谁遇到过一下的问题: 
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from http://repo1.maven.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-compiler-plugin:pom:2.3.2 from/to central (http://repo1.maven.org/maven2): connection timed out to http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom 

安装完eclipse的maven插件后(maven - http://download.eclipse.org/technology/m2e/updates/M)就出现这个问题了,望各位大侠帮助下~
Java综合 
2011年5月11日 18:07
  • Comment添加评论
  • 关注(0)

2个答案按时间排序按投票排序

00



先测试一下 maven是否安装成功 


如果你的m2Eclipse安装成功的话 可以打开首选项 可以看到上面的视图 设置一下你的全局setting 

 
完了之后打开maven仓库视图 

 

更新maven仓库索引 

 

测试一下 看看可以打开吗 如果上面的步骤没问题的话 maven就可以正常使用

2011年5月12日 13:17
  • Comment添加评论
00

你先安装上maven配置maven环境变量 在cmd内输入mvn -version 测试是否安装成功 

然后在Eclipse里面安装上m2Eclipse后 配置一下 选择全局配置文件 settings.xml 

这个里面配置了 本地仓库的位置 

m2Eclipse安装的时候 不知道你是怎么安装的 他安装的时候是需要其他的插件的 你可以参考maven官方文档中文翻译的那本 非常经典

2011年5月12日 08:43
0

maven 菜鸟级问题--连接不到中央库5

不知有没谁遇到过一下的问题: 
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from http://repo1.maven.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-compiler-plugin:pom:2.3.2 from/to central (http://repo1.maven.org/maven2): connection timed out to http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom 

安装完eclipse的maven插件后(maven - http://download.eclipse.org/technology/m2e/updates/M)就出现这个问题了,望各位大侠帮助下~
Java综合 
2011年5月11日 18:07
  • Comment添加评论
  • 关注(0)

2个答案按时间排序按投票排序

00



先测试一下 maven是否安装成功 


如果你的m2Eclipse安装成功的话 可以打开首选项 可以看到上面的视图 设置一下你的全局setting 

 
完了之后打开maven仓库视图 

 

更新maven仓库索引 

 

测试一下 看看可以打开吗 如果上面的步骤没问题的话 maven就可以正常使用

2011年5月12日 13:17
  • Comment添加评论
00

你先安装上maven配置maven环境变量 在cmd内输入mvn -version 测试是否安装成功 

然后在Eclipse里面安装上m2Eclipse后 配置一下 选择全局配置文件 settings.xml 

这个里面配置了 本地仓库的位置 

m2Eclipse安装的时候 不知道你是怎么安装的 他安装的时候是需要其他的插件的 你可以参考maven官方文档中文翻译的那本 非常经典

2011年5月12日 08:43
原创粉丝点击