Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要通过 m2e 插件连接到默认的 maven 存储库。我修改了 settings.xml 中的代理设置和 Preferences -> General 中的网络连接
但是,当我打开 Eclipse 时,我得到
unable to update index for central http //repo1.maven.org/maven2
错误并且未下载工件。我怀疑代理设置可能有问题。我将如何验证相同的内容。
尝试更新 Maven 项目:
进入包资源管理器视图,然后选择您的 Maven 项目,然后按ALT+ F5。当更新项目窗口将打开时,单击 OK 确认。
我建议先验证命令行 maven 是否可以访问 maven central。