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

发布于 2024-11-29 12:13:31 字数 253 浏览 1 评论 0原文

我面临的情况是我的 eclipse indigo 是“无法更新中央索引|http://repo1.maven.org/maven2”

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

另外,我在 eclipse 中的网络配置全部设置为 direct,但我仍然无法更新索引。

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

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

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

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

泪意 2024-12-06 12:13:31

来自 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。

From Wojtek's link.

  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.
爱已欠费 2024-12-06 12:13:31

只是遇到了同样的问题。结果发现 m2e 插件无法处理 settings.xml 中的加密密码。只需输入纯密码并更新索引即可再次工作。依赖项下载不受影响。它们可以很好地处理加密密码。对我来说看起来像一个错误。

Just having had the same problem. Turned out the m2e plugin can't handle encrypted passwords in settings.xml. Just entered the plain password and updating the index worked again. Dependency download were not affected. They work just fine with encrypted passwords. Looks like a bug to me.

花期渐远 2024-12-06 12:13:31

我已经尝试了所有这些较小的删除,但没有帮助。一位同事建议删除整个 .metadata 文件夹。稍后从他们的位置导入项目或从 svn 签出它们(如果您使用一些)。
这并不复杂,但很有帮助。问题是我们并不真正知道哪些元数据被破坏,所以下一步自然是删除所有元数据。我认为,这是重新安装 Eclipse + 插件之前最深层的清理。

I have tried all these lesser deletes, but it won't help. A colleague advised to delete the whole .metadata folder. Later import projects from their place or checkout them from the svn(if you use some).
This is not much more complicated, but it helped. the problem is that we don't really know, what metadata are broken, so the natural next step is to delete all of them. I think, it is the deepest possible cleaning before reinstallation of Eclipse + plugins.

天冷不及心凉 2024-12-06 12:13:31

我必须更新 Maven 插件。它不起作用。 (帮助菜单 > Eclipse Marketplace > 输入 Maven > 单击放大镜) >选择Maven插件>更新

然后转到 Window->Preferences->Maven 并启用名为“启动时下载存储库索引更新”的复选框。

I had to update Maven Plugin. It was not working. (Help menu > Eclipse Marketplace > type Maven > click magnifying glass) > Select Maven Plugin > Update

And then Go to Window->Preferences->Maven and enable checkbox named “Download repository index updates on startup”.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文