经典错误:无法更新central | http://repo1.maven.org/maven2的索引

alp*_*tes 27 java eclipse m2eclipse maven eclipse-indigo

我正面临着我的日食靛蓝的情况"Unable to update index for central|http://repo1.maven.org/maven2".

我正在使用外部Maven 3.0.3安装和使用Eclipse Indigo配置的m2eclipse,我绝对不会支持任何代理.

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

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

Ike*_*nez 40

来自Wojtek的链接.

  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.

  • 如果没有"org.maven.ide.eclipse"文件夹怎么办? (3认同)