An internal error occurred during: “Updating Maven Project”. Unsupported IClasspathEntry kind=4

前端 未结 13 2150
暖寄归人
暖寄归人 2021-01-29 20:56

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:

相关标签:
13条回答
  • 2021-01-29 21:25

    Slightly different option usually works for me:

    1. "mvn eclipse:eclipse" for this project in the command line.
    2. "Refresh/F5" this project in eclipse.

    That's all, no need to re-import but need to have the terminal window handy.

    0 讨论(0)
  • 2021-01-29 21:26

    I solved this by looking at this comment on JBIDE-11655 : deleting all .project, .settings and .classpath in my projects folder.

    0 讨论(0)
  • 2021-01-29 21:29

    My tricky solution is:

    1. Open your windows Task Manager,
    2. Find the Javaw.exe process and highlight it, then End it by End Process
    3. In eclipse project browser, right click it and use Maven -> Update Project again.

    Issue is resolved.

    If you have Tomcat Server Running in Eclipse, you need to refresh project before restart Tomcat Server.

    0 讨论(0)
  • 2021-01-29 21:30

    It helped in my case

    rightclick project, remove 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

    0 讨论(0)
  • 2021-01-29 21:33

    After trying all these procedures it still didn't work for me. What did work was

    1. go into File Explorer and delete the .classpath file under the project's root folder
    2. run Maven update within Eclipse, and check Force update of Snapshots/Releases

    Our current work required integrating a number of disparate projects so unfortunately use of SNAPSHOTs in a production environment were required (taboo in Maven circles)!

    0 讨论(0)
  • 2021-01-29 21:40

    I removed my .classpath file in my project directory to correct this issue. No need to remove the Maven Nature from the project in Eclipse.

    The specific error I was getting was: Project 'my-project-name' is missing required Java project: 'org.some.package-9.3.0 But my project wasn't dependent on org.some.package in any way.

    Perhaps an old version of the project relied on it and Maven wasn't properly updating the .classpath file.

    0 讨论(0)
提交回复
热议问题