在工作中,需要用到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即可。截图如下: