Unable to update index for central http://repo1.maven.org/maven2/

 

Unable to update index for central http://repo1.maven.org/maven2/ 就是这句,myeclipse启动后控制台输出这句话:
解决办法:
1.在myeclipse3.4(我用的这个版本)里面Window => Preferences => Myeclipse Enterprise Workbench => Maven4Myeclipse => Maven=>禁用Download repository index updates on startup
如果没有,则首先你要 Window => Preferences => Myeclipse Enterprise Workbench => Maven4Myeclipse 
这个里面启用 Enable Maven4Myeclipse features ,打上勾,要先启用这个插件 
这样 Window => Preferences => Myeclipse Enterprise Workbench => Maven4Myeclipse => Maven 
就有了!再选中就好了! 
其实上面还有一项 offline 的!呵呵!我直接就把这个选上了!哈哈!

 

 

myeclipse启动后控制台显示这句,解决方法是:

Window => Preferences => Myeclipse Enterprise Workbench => Maven4Myeclipse => Maven=>禁用Download repository index updates on startup


myeclipse启动后控制台显示这句,解决方法是:

Window => Preferences => Myeclipse Enterprise Workbench => Maven4Myeclipse => Maven=>禁用Download repository index updates on startup

 

Recently I wanted to refresh my maven repos, but the following problem have occured

Unable to update index for central|http://repo1.maven.org/maven2

If you experience this problem, try to delete contents in the following directory

workspace_location\.metadata\.plugins\org.maven.ide.eclipse\nexus

Before directory deletion ensure that your Eclipse instance is not running.

After you deleted directory go to Window->Preferences->Maven and enable checkbox named“Download repository index updates on startup”.
Press OK and restart Eclipse.

Next time you start Eclipse Nexus indexer will update repository indexes.

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值