M2e not finding missing repository - m2e eclipse plugin

一曲冷凌霜 提交于 2020-03-02 06:57:13

问题


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

Do I need to configure m2e to search the maven repository ?


回答1:


Try to update your repository index in the Maven Repositories View.

  1. Open the View with: Windows -> Show View -> Others -> Maven -> Maven Repositories View
  2. Start Rebuild Index and/or update Index from the context menu of the Central Repository

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.



来源:https://stackoverflow.com/questions/10122483/m2e-not-finding-missing-repository-m2e-eclipse-plugin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!