简体   繁体   English

无法在Eclipse中选择Maven依赖项

[英]Cannot select Maven dependency from within Eclipse

I have the Select Dependency Window open from within the Maven Repositories view in Eclipse Mars . 我从Eclipse MarsMaven Repositories视图中打开了Select Dependency Window。

I want to be able to select from auto-populated entries when I type into the filter box. 我希望能够在输入过滤器框时从自动填充的条目中进行选择。 Instead, I get no search results at all: 相反,我根本没有任何搜索结果:

图片1

These are my Maven settings: 这些是我的Maven设置:

image2

When I select " Rebuild Index " against the central Global Repository , it hangs on 0% . 当我针对中央Global Repository选择“ Rebuild Index ”时,它挂在0%上

There are a small handful of questions around this topic, but the most commonly provided answer is to check the " Download repository index updates on startup ". 关于此主题的问题很少,但是最常用的答案是检查“ Download repository index updates on startup ”。 This has not solved the problem. 这还没有解决问题。

Here are a few things to check/know: 这里有一些要检查/知道的事情:

  • You might not have properly set up proxy settings. 您可能没有正确设置代理设置。 If this is the case (which is most-likely), then it's understandable that it's not moving past 0% . 如果是这种情况(很可能是这种情况),那么可以理解的是它没有超过0%

  • It might take a while to download the indexes. 下载索引可能需要一段时间。 These are normally 150-200 MB . 这些通常为150-200 MB

answers already here: link1 link2 答案已经在这里: link1 link2

else Delete content in .metadata.plugins\\org.eclipse.m2e.core\\nexus Enable full index from preferences --> maven Else there is proxy issue for you where you would need to configure settings.xml from ~/.m2/settings.xml with the necessary proxy details else删除.metadata.plugins \\ org.eclipse.m2e.core \\ nexus中的内容从首选项启用完整索引-> maven另外,还有代理问题,您需要在〜/ .m2 / settings中配置settings.xml。 .xml以及必要的代理详细信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM