apache的mina框架项目用到了maven,在eclipse中选择install new software后加上http://m2eclipse.sonatype.org/sites/m2e,安装maven for eclipse后重启eclipse出现了如下问题:Eclipse is running in a JRE, but a JDK is required Some Maven plugins may not work when importing projects or updating source folders
解决办法如下:
找到eclipse.ini
加入
-vm
/path/to/your/jdk/javaw.exe
再次重启eclipse即可