Eclipse使用Maven时出现:Index downloads are disabled, search results may be incomplete

来源:互联网 发布:mac系统没有了 编辑:程序博客网 时间:2024/05/01 01:23

“Window” –> “Preferences” 然后选择 Maven选项,

然后选择 “Download repository index updates on startup”

如果没有 “Search Results”

那么”Window” —> “Show View” —> “Maven Repositories” —> “Global Repositories”

选择 “central” 右键点击选择“full-index”等待下载,然后选择 “Update Index”
重启。
假如还没有成功,则关闭Eclipse,

在Eclipse的工作空间删除以下文件
workspace_location/.metadata/.plugins/org.maven.ide.eclipse/nexus
workspace_location/.metadata/.plugins/org.eclipse.m2e.core/nexus
然后重启。

0 0