经典错误:无法更新中心的索引| http://repo1.maven.org/maven2 [英] Classic error: Unable to update index for central|http://repo1.maven.org/maven2

查看:1291
本文介绍了经典错误:无法更新中心的索引| http://repo1.maven.org/maven2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正面临着一个情况,我的日食靛蓝是无法更新中心的索引| http://repo1.maven.org/maven2

I am facing a situation where my eclipse indigo is "Unable to update index for central|http://repo1.maven.org/maven2".

我正在使用外部Maven 3.0.3安装和m2eclipse配置与Eclipse Indigo
,我绝对不在任何代理。

I am using an external Maven 3.0.3 installation and m2eclipse configured with Eclipse Indigo and I am definitely not behind any proxy.

此外,我的eclipse中的网络配置都设置为直接,我仍然无法更新索引。

Also my networking configuration in eclipse is all set to direct and I am still unable to update the indices.

我可能忽略了什么?我在Google和其他论坛上搜索过,但无法解决。

What may I have overlooked? I have searched on Google and other forums but am unable to resolve it.

推荐答案

从Wojtek的链接。
$ b

From Wojtek's link.


  1. 关闭Eclipse

  2. 删除workspace_location / .metadata / .plugins / org.maven.ide.eclipse / nexus

  3. 删除workspace_location / .metadata / .plugins / org.eclipse.m2e.core / nexus

  4. 转到Window-> Preferences-> Maven并启用复选框启动时下载存储库索引更新。

  5. 确定并重新启动Eclipse。

  1. Close Eclipse
  2. Delete workspace_location/.metadata/.plugins/org.maven.ide.eclipse/nexus
  3. Delete workspace_location/.metadata/.plugins/org.eclipse.m2e.core/nexus
  4. Go to Window->Preferences->Maven and enable checkbox named "Download repository index updates on startup".
  5. OK and restart Eclipse.

这篇关于经典错误:无法更新中心的索引| http://repo1.maven.org/maven2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆