eclipse安装maven插件-解决requires 'bundle org.slf4j.api

给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就可以了)

eclipse安装maven插件-解决requires 'bundle org.slf4j.api

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

eclipse安装maven插件-解决requires 'bundle org.slf4j.api


使用的版本是indigo. 大于1.3 以上的maven都会安装失败

lz安装 http://download.eclipse.org/technology/m2e/releases/1.3 即可



Myeclipse 找不到Convert to maven project选项

Window > Preferences > General > Capabilities > Advanced >

 

MyEclipse

 Standard 

Tools > check the option WTP (Deprecated).

在SVN导出的Maven项目,或以前不是用Maven管理的项目想要转换成Maven项目,但Myeclipse中右键Configure 找不到Convert to maven project选项,因此需要如下设置:

Window > Preferences > General > Capabilities > Advanced > MyEclipse Standard Tools > check the option WTP (Deprecated).



  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值