在以下期间发生内部错误:“更新Maven项目”。不支持的IClasspathEntry种类= 4 [英] An internal error occurred during: "Updating Maven Project". Unsupported IClasspathEntry kind=4

查看:171
本文介绍了在以下期间发生内部错误:“更新Maven项目”。不支持的IClasspathEntry种类= 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中的所有内容。

解决方案

对我来说,做一些稍微不同的工作:


  1. rightclick项目,删除maven自然(或者在更新的eclipse中,Maven->禁用Maven自然)

  2. mvn eclipse:clean (在eclipse / STS中打开项目)

  3. 删除eclipse中的项目(但不要删除源代码)

  4. 导入现有的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:

  1. rightclick project, remove maven nature (or in newer eclipse, "Maven->Disable Maven Nature")
  2. mvn eclipse:clean (with project open in eclipse/STS)
  3. delete the project in eclipse (but do not delete the sources)
  4. Import existing Maven project

这篇关于在以下期间发生内部错误:“更新Maven项目”。不支持的IClasspathEntry种类= 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆