使用m2e插件无法在Eclipse Kepler中搜索工件 [英] Cannot search for artifact in Eclipse Kepler using m2e plugin
问题描述
但是当我想添加一个依赖项(打开pom.xml,转到依赖关系)时,我试过新的Eclipse开普勒选项卡,然后单击添加)我可以在搜索框中输入一些jetty字符串,但没有任何反应。在旧版本中,我列出了包含jetty的所有依赖项。
我不知道这是否重要,但是我打开add依赖屏幕:
Artifact Id不能为空。
我不使用代理或有任何网络问题。
我也错过了一些信息:indexing maven repo ...
任何想法?
谢谢!
我有类似的情况和谷歌搜索一段时间,我发现这是很可能是因为您的中央存储库索引可能永远不会被更新。
为此您可以做的是
- 转到窗口>显示视图>其他> 类型Maven在过滤器中并选择 Maven存储库。
- 在 Maven存储库选项卡中展开全局存储库点击中央和更新索引。
还可以设置索引要更新eclipse启动 Windows>首选项> Maven ,并检查启动时下载存储库索引更新
希望这有助于其他人。
I tried the new Eclipse Kepler that already comes with a maven plugin.
But when I want to add a dependency (open the pom.xml, go to dependencies tab and click add) I can input some string like "jetty" in the search box but nothing happens. In older versions I got a list of all dependencies containing "jetty".
I don't know if this is important but I directly get an info when opening the "add dependency screen": "Artifact Id cannot be empty".
I do not use a proxy or have any network issues.
I also missed an information something like: "indexing maven repo..."
Any idea?
Thanks!
I had similar situation and by googling for a while i found out that this is most likely because your central Repository index might never have been updated. For this what you can do is
- Go to Window > Show View > Other > type Maven in filter and select Maven Repositories.
- In Maven Repositories tab Expand Global Repositories, Right-click on central and Update Index.
also you can set up index to update on eclipse startup Windows > Preferences > Maven and check "Download repository index updates on startup".
Hope this helps some one else.
这篇关于使用m2e插件无法在Eclipse Kepler中搜索工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!