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

前端 未结 13 2120
暖寄归人
暖寄归人 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:44
    • I just went to Properties -> Java Build Path -> Libraries and removed the blue entries starting with M2_REPO.

    • After that, I could use Maven -> Update Project again

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

    This issue (https://bugs.eclipse.org/394042) is fixed in m2e 1.5.0 which is available for Eclipse Kepler and Luna from this p2 repo :

    http://download.eclipse.org/technology/m2e/releases/1.5

    If you also use m2e-wtp, you'll need to install m2e-wtp 1.1.0 as well :

    http://download.eclipse.org/m2e-wtp/releases/luna/1.1

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

    I have that problem and my solution is going source folder and run command line: mvn clean install -DskipTests eclipse:eclipse then return eclipse workspace and refresh project. Hope that help!

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

    This is all you need:

    1. Right-click on your project, select Maven -> Remove Maven Nature.

    2. Open you terminal, navgate to your project folder and run mvn eclipse:clean

    3. Right click on your Project and select Configure -> Convert into Maven Project

    4. Right click on your Project and select Maven -> Update Project

    0 讨论(0)
  • 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
    0 讨论(0)
  • 2021-01-29 21:47

    I imported the project as general project from git repository.

    • Deleted .settings, .project and .classpath in project's folder
    • Configure -> Convert to Maven Project. Only this solved the problem in my case.
    0 讨论(0)
提交回复
热议问题