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

本文解决Maven连接中央库失败的问题,提供检查Maven安装、配置全局settings.xml及更新仓库索引的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >



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)就出现这个问题了,望各位大侠帮助下~
2011年5月11日 18:07

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

0 0



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


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

 
完了之后打开maven仓库视图 

 

更新maven仓库索引 

 

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

2011年5月12日 13:17
0 0

你先安装上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)就出现这个问题了,望各位大侠帮助下~
2011年5月11日 18:07

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

0 0



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


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

 
完了之后打开maven仓库视图 

 

更新maven仓库索引 

 

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

2011年5月12日 13:17
0 0

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

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

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

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

2011年5月12日 08:43
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值