当我将鼠标悬停在Eclipse中没有找到的包上并单击'Search repositories‘时,我搜索的依赖项就找不到了。该依赖项存在于官方maven存储库:http://search.maven.org/remotecontent?filepath=javax/portlet/portlet-api/2.0-r12/portlet-api-2.0-r12.pom
我需要配置m2e来搜索maven存储库吗?

发布于 2012-05-08 05:00:30
尝试在Maven Repositories视图中更新存储库索引。
从
的上下文菜单中,使用以下命令打开视图:Windows -> Show View -> Others -> Maven -> Maven Repositories View
Rebuild Index和/或update Index这个(长时间运行的)任务通常在启动时完成( -> Maven ->Download Repository Index在启动时更新),但可能为了获得更好的eclipse启动性能而禁用它。
https://stackoverflow.com/questions/10122483
复制相似问题