An internal error occurred during: "Updating Maven Project

前端 未结 10 2065
不思量自难忘°
不思量自难忘° 2021-01-29 23:52

when i convert to maven project the error is :

> An internal error occurred during: \"Updating Maven Project\".
> Unsupported IClasspathEntry kind=4


        
相关标签:
10条回答
  • 2021-01-29 23:59

    This issue has been fixed in m2e 1.5.0 which is available for Eclipse Kepler (4.3) and Luna (4.4)

    Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=374332#c14

    The problem is caused by the fact that STS (the Spring IDE/Eclipse), as well Eclipse and other Eclipse based IDE's, use the m2e(clipse) plugin but that eclipse:eclipse has been probably been run on the project. When m2e encounters a "var" .classpath entry, it throws this error.

    The update sites are specified at the following url: http://download.eclipse.org/technology/m2e/milestones/1.6/

    0 讨论(0)
  • 2021-01-30 00:04

    This is all you need:

    1. Right-click on your project, select Maven -> Disable Maven Nature.
    2. Open you terminal, go to your project folder and do “mvn eclipse:clean”
    3. Right click on your Project and select “Configure -> Convert into Maven Project”
    0 讨论(0)
  • 2021-01-30 00:04

    An internal error occurred during: "Importing Maven projects". Unsupported IClasspathEntry kind=4

    1. Right-click on your project, select Maven -> Remove Maven Nature. 2.Open you terminal, go to your project folder and do “mvn eclipse:clean” 3.Right click on your Project and select “Configure -> Convert into Maven Project”

    also delete project from eclipse. and run: mvn eclipse:clean then import project again.

    0 讨论(0)
  • 2021-01-30 00:09

    Following worked for me: Right-click project, select Maven -> Remove Maven Nature. Close Eclipse go to project folder on command prompt and do “mvn eclipse:clean” Start Eclipse Right click on Project and select “Configure -> Convert into Maven Project”

    0 讨论(0)
  • 2021-01-30 00:11

    Here is what worked for me: After the steps posted in Answer 21 above (the last being Convert to Maven Project), I did:

    1. mvn eclipse:eclipse - this regenerates your .project and .classpath files (both of which were blown away by mvn eclipse:clean in step (2) above)

    2. In Eclipse, I right-clicked my project(s) and then Maven > Update Project

    I did not see the Unsupported IClasspathEntry kind=4 message anymore :)

    0 讨论(0)
  • 2021-01-30 00:13

    As posted here, the problem is the command line eclipse project generation. So, do not use mvn eclipse:eclipse instead do:

    1. delete your project from eclipse (without deleting it from your file system)
    2. do mvn eclipse:clean in your command line inside your project folder
    3. delete .classpath .project .settings in your project folder (if they still exist after doing 2.)
    4. in eclipse import your project as an "Existing Maven Projects" and it should work flawlessly
    0 讨论(0)
提交回复
热议问题