在以下期间发生内部错误:“更新Maven项目”。不支持的IClasspathEntry种类= 4 [英] An internal error occurred during: "Updating Maven Project". Unsupported IClasspathEntry kind=4
问题描述
Eclipse
与 Maven自然
,当我更新我的Maven Project,我得到这个错误:
在更新Maven项目期间发生内部错误。
不支持IClasspathEntry kind = 4
总是回来的解决方案如下:
- rightclick项目,删除maven自然
-
mvn eclipse:clean
(项目在eclipse / STS) - (有时候他们建议做
mvn eclipse:eclipse
next) - rightclick项目和reenable maven自然
现在我详细尝试了所有的组合几次。但是我总是不断得到上面的错误。该错误开始发生,当我不得不 mvn eclipse:eclipse
项目。之前它总是运行良好只使用 m2eclipse 功能并设置eclipse中的所有内容。
对我来说,做一些稍微不同的工作:
- rightclick项目,删除maven自然(或者在更新的eclipse中,Maven->禁用Maven自然)
-
mvn eclipse:clean
(在eclipse / STS中打开项目) - 删除eclipse中的项目(但不要删除源代码)
- 导入现有的Maven项目
As the title mentioned I have the following problem: I use Eclipse
with Maven Nature
and when I update my Maven Project, I get this error:
An internal error occurred during: "Updating Maven Project".
Unsupported IClasspathEntry kind=4
The solution that always comes back is the following:
- rightclick project, remove maven nature
mvn eclipse:clean
(with project open in eclipse/STS)- (sometimes they suggest to do
mvn eclipse:eclipse
next) - rightclick project and reenable maven nature
Now I exhaustively tried all combinations several times. But I always keep getting the above error. The error starting occurring when I had to mvn eclipse:eclipse
the project. Before it was always running fine using only m2eclipse features and setting everything in eclipse.
I had to do it slightly different to work for me:
- rightclick project, remove maven nature (or in newer eclipse, "Maven->Disable Maven Nature")
mvn eclipse:clean
(with project open in eclipse/STS)- delete the project in eclipse (but do not delete the sources)
- Import existing Maven project
这篇关于在以下期间发生内部错误:“更新Maven项目”。不支持的IClasspathEntry种类= 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!