eclipse安裝maven插件失敗的解決辦法

在工作中,需要用到maven。在安裝好maven後,在eclipse中安裝maven插件時,卻遇到了問題,總是提示安裝失敗。提示信息如下:

Cannot complete the install because one ormore required items could not be found.

Software being installed: m2e - MavenIntegration for Eclipse (includes Incubating components) 1.6.2.20150902-0002(org.eclipse.m2e.feature.feature.group 1.6.2.20150902-0002)

Missing requirement: Maven Integration forEclipse Launching 1.6.2.20150902-0002 (org.eclipse.m2e.launching1.6.2.20150902-0002) requires 'bundle com.google.guava [14.0.1,16.0.0)' but it could not befound

Cannot satisfy dependency:

   From: m2e - Maven Integration for Eclipse (includes Incubatingcomponents) 1.6.2.20150902-0002 (org.eclipse.m2e.feature.feature.group1.6.2.20150902-0002)

To:org.eclipse.m2e.launching [1.6.2.20150902-0002]

如上所示,提示缺少依賴的文件。導致這個問題的原因是,我們安裝的插件的版本太高了,換成低版本的插件就好了。我安裝的版本如下:JDK:1.6,Eclipse:4.2,maven:7。

解決辦法:在Eclipse中點擊Help->Install New Software,在work with中點擊Add,Name輸入m2e_new,Location輸入 http://download.eclipse.org/technology/m2e/milestones/1.4,然後就可以看到m2e插件了。全部選中,安裝後重啓Eclipse即可。截圖如下:
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章