问题描述
当我将鼠标悬停在Eclipse中未找到的包中,然后单击搜索库时,找不到我正在搜索的依赖关系。依赖关系存在于官方的maven存储库中:
When I hover over a package that is not found within Eclipse and click 'Search repositories', the dependency I'm searching for is not found. The dependency exists on the official maven repository : http://search.maven.org/remotecontent?filepath=javax/portlet/portlet-api/2.0-r12/portlet-api-2.0-r12.pom
我需要配置m2e来搜索maven仓库吗?
Do I need to configure m2e to search the maven repository ?
推荐答案
尝试更新您的存储库索引Maven存储库视图。
Try to update your repository index in the Maven Repositories View.
- 通过以下方式打开视图:
Windows - >显示视图 - >其他 - > Maven - > Maven存储库查看
- 开始
重建索引
和/或update Index
从中央存储库的上下文菜单
- Open the View with:
Windows -> Show View -> Others -> Maven -> Maven Repositories View
- Start
Rebuild Index
and/orupdate Index
from the context menu of the Central Repository
这个(长时间运行的)任务通常在启动时完成(Windows - >首选项 - > Maven - >在启动时下载Repository索引更新),但也可能禁用它以获得更好的eclipse启动性能。
This (long running) task is normally done on startup (Windows -> Preferences -> Maven ->Download Repository Index updates on startup) but maybe it is disabled to get a better eclipse startup performance.
这篇关于M2e没有找到缺少的存储库 - m2e eclipse插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!