在用maven导入maven project 的时候,报 Unsupported IClasspathEntry kind=4 ,导致maven project 不能正常的加载。
原因:因为eclipse 使用了m2eclipse 插件,但这个插件的使用前提是不允许命令mvn eclipse:eclipse在项目上执行,如果执行过,就会抛出这个异常。
解决方法:
1.首先去掉项目的maven 特性 右键---》maven----》disable maven nature ;
2.用命令行进入maven 工程下,执行mvn eclipse:clean
3.回到eclipse中,重新激活 maven 特性。