Eclipse:Maven搜索依赖关系不起作用 [英] Eclipse : Maven search dependencies doesn't work

查看:257
本文介绍了Eclipse:Maven搜索依赖关系不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个新的Workspace中创建了一个新的简单的Maven项目。

I created a new simple Maven project in a new Workspace.

当我打开 pom.xml 在Eclipse编辑器中的依赖关系视图,我选择 Add .. 依赖关系,无论搜索结果如何我在搜索字段中输入的标准:

When I open the pom.xml's Dependencies view in Eclipse editor, and I choose Add.. dependency, there's no search results no matter what search criteria I input in the search fields:

它立即给我,例如'spring'(0)的结果

在我的其他工作区中,使用我现有的项目,我没有这个问题。

In my other workspace, with my existing projects I don't have this problem.

有没有办法解决这个问题?

Is there a way to fix that ?

推荐答案

eclipse工件搜索取决于存储库的索引文件,似乎没有下载索引

eclipse artifacts search depends on repository's index file, it seems, you did not download index file.

检查启动时下载存储库索引更新并重新启动eclipse。
然后,查看进度视图,索引文件正在下载。

Check "Download repository index updates on start" and restart your eclipse. And then, look at the progress view, an index file is downloading.

完全下载后,您的工件搜索功能可以使用。

After downloading completely, your artifacts search feature is ready to use.

更新
您还需要在maven仓库视图中重建maven存储库索引。

UPDATE You also need to rebuild your maven repository index in 'maven repository view'.

在此视图中,打开全局存储库,右键单击中央,选中完全索引启用
,然后单击同一菜单中的重建索引。

In this view , open 'Global Repositories', right-click 'central', check 'Full Index Enable', and then, click 'Rebuild Index' in the same menu.

将下载一个66M的索引文件。

A 66M index file will be downloaded.

这篇关于Eclipse:Maven搜索依赖关系不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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