我在STS中导入了maven项目,当我运行更新更新项目时,我收到:
"Updating Maven Project". Unsupported IClasspathEntry kind=4
有什么解决办法吗?
我在STS中导入了maven项目,当我运行更新更新项目时,我收到:
"Updating Maven Project". Unsupported IClasspathEntry kind=4
有什么解决办法吗?
当前回答
确保您正在运行的m2e(clipse)插件的版本至少为1.1.0 关闭maven项目-右键单击“关闭项目” 手动删除。classpath文件中所有带有kind="var"的classpathentry 开放项目
or
删除maven项目 手动清除.classpath 4再导入项目
其他回答
我尝试了这里提到的所有步骤和类似的问题,但不能解决这个问题。我既不能解决问题,也不能更新我的m2eclipse。所以我安装了Eclipse Luna,它解决了我的问题……尽管这意味着我必须花45分钟来配置我的工作空间中的所有环境。
确保您正在运行的m2e(clipse)插件的版本至少为1.1.0 关闭maven项目-右键单击“关闭项目” 手动删除。classpath文件中所有带有kind="var"的classpathentry 开放项目
or
删除maven项目 手动清除.classpath 4再导入项目
我使用Eclipse 4.3.2 (Kepler)和M2E 1.4。X和摸索了好几次这个问题!
在我的情况下,“mvn eclipse:eclipse”命令还生成Checkstyle, PMD和Findbugs配置,所以“mvn eclipse:clean”对我没有帮助,因为它会再次删除所有这些配置文件。
对我来说,最好的解决办法就是删除所有。”类路径”文件:
find . -name ".classpath" -delete
然后将项目导入eclipse。
I tried Marco's steps but no luck. Instead if you just get the latest m2e plugin from the link he provides and one by one right click on each project -> Maven -> Update Dependencies the error still pops up but the issue is resolved. That is to say the warnings disappear in the Markers view. I encountered this issue after importing some projects into SpringSource Tool Suite (STS). When I returned to my Eclipse Juno installation the warnings were displaying. Seeing that I had m2e 1.1 already installed I tried Marco's steps to no avail. Getting the latest version fixed it however.
你有没有试过:
如果您有导入项目到eclipse 4,请删除它。 在maven consol中,运行:mvn eclipse:clean Eclipse 4: File -> Import -> Maven ->现有Maven项目