You may encounter the below Maven error while importing or updating your Maven project on Eclipse IDE
Unsupported IClasspathEntry kind=4?
This error is thrown when the old version of M2Eclipse Plugin (previous than 1.5.0) encounters a “var” in the .classpath file especially when an mvn eclipse:eclipse command has been run on the project.
This bug has been fixed in the version 1.5 of M2Eclipse. The easy solution will be to upgrade your M2Eclipse Plugin to a newest release. If you can’t below how to resolve this problem :
- Disable the Maven nature of your project by Right-Click -> Maven -> Disable Maven Nature
- Delete the .project, .classpath and .settings/ manually or by executing the following command on your project via a prompt window :
- Go back to Eclipse and enable the Maven nature of your project by right-click -> Configure -> Convert to Maven project.
- You may need to refresh your project (Right-click refresh or F5).
The “Unsupported IClasspathEntry kind=4” Maven error will disappear.