在安裝Eclipse插件時常常出現「No repository found containing」的錯誤提示,提示中的內容通常是說某某插件的某一版本沒有找到,進而致使安裝失敗。今天我在安裝m2e connector for build-helper-maven-plugin時就出現下面這個錯誤提示: session
An error occurred while collecting items to be installed session context was:(profile=epp.package.rcp, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).No repository found containing: osgi.bundle,org.eclipse.team.cvs.ssh,3.2.100.I20080604 eclipse
在Google上搜索了一些解決辦法,依然沒有解決問題,可是這篇帖子給了我一些解決的思路。也就是說在安裝或更新插件時,選中「Contact all update sites during install to find required software」選項,當插件須要下載依賴的包時會嘗試從全部的更新站點去下載。那麼這裏要解決的問題是:找到缺失的包的更新站點。從錯誤提示中能夠看到缺失的包是:osgi.bundle,org.eclipse.team.cvs.ssh,版本是:3.2.100.I20080604。這裏提到版本是由於不一樣版本的包可能會出如今不一樣的更新站點。搜索以後,發現本次缺失的包的更新站點是 ssh
http://download.eclipse.org/releases/ganymede maven
將此更新站點添加到Eclipse的「Available Software Sites」中,以下圖所示: ui
添加完成後,再次安裝時選中「Contact all update sites during install to find required software」選項。 spa
而後進行安裝,經過此方法將m2e connector for build-helper-maven-plugin安裝成功。 插件