首页 > 代码库 > eclipse安装maven插件-解决requires ‘bundle org.slf4j.api 1.6.2′

eclipse安装maven插件-解决requires ‘bundle org.slf4j.api 1.6.2′

eclipse安装maven插件-解决requires ‘bundle org.slf4j.api 1.6.2′

【转载】http://robin.sh/html/1526_eclipse-maven.html

给eclipse安装maven插件,网上教程已经很多,不在累述。关键是安装过程中报错:requires ‘bundle org.slf4j.api 1.6.2‘ but it could not be found。 这个错误很难搞,网上提供的解决方案绝大部分都不起作用。可能跟eclipse的版本也有关。我用的是eclipse3.7.1。

弄了很久,终于找到一种解决的办法。还是要先把slf4j-api这个东西装在eclipse上。具体方法如下:

1. 使用资源仓库 http://www.fuin.org/p2-repository/ ,安装slf4j-api,以及slf4j-log4j12
(其实只要装slf4j-api就可以了)

2. 再使用资源仓库 http://download.eclipse.org/technology/m2e/releases, 安装m2eclipse