2012-04-12 72 views
2

當我懸停在沒有在Eclipse中找到並點擊「搜索庫」一包,我在尋找的依賴是找不到的。這個依賴項存在於官方的maven倉庫中:http://search.maven.org/remotecontent?filepath=javax/portlet/portlet-api/2.0-r12/portlet-api-2.0-r12.pom的M2e不是尋找失蹤庫 - M2E Eclipse插件

我需要配置m2e來搜索maven倉庫嗎?

enter image description here

+0

您是否嘗試輸入** portlet-api **而不是導致對話框上的文本顯示「選擇要添加的工件...」 – khmarbaise 2012-04-12 20:52:44

+0

@khmarbaise ive嘗試過,但結果相同。我可以使用http://search.maven.org/先進的搜索,但通過Eclipse搜索會更好 – 2012-04-13 08:51:16

回答

4

嘗試更新Maven資源庫查看您的存儲庫索引。

  1. 打開與視野:從中央存儲庫

這(長時間運行)任務的上下文菜單Windows -> Show View -> Others -> Maven -> Maven Repositories View

  • 開始Rebuild Index和/或update Index通常在啓動時完成(窗口 - >首選項 - >的Maven - >下載在啓動存儲庫索引更新),但也許這是禁用,以獲得更好的Eclipse啓動性能。