I have an existing Maven project with correct pom.xml file. I am able to build the project from command line mvn install
. However, when I import the project as existing Maven Project in eclipse, I get Unsupported IClasspathEntry kind=4
error in eclipse.
Further, some of the project's properties are not correctly reflected after the import - E.g. it is a web project, but I do not see Deployed Resources
under the project structure. I can still see that little M
on the project icon indicating that it is a maven project.
I tried updating the project with Alt+F5
and refreshed it with F5
as well. Still the same error.
I also tried the approach mentioned on this SO post
How to fix error "Updating Maven Project". Unsupported IClasspathEntry kind=4?
- i.e. Disable maven nature, eclipse:clean, re-enable maven nature. Still the same error when I enable maven nature.
Eclipse also shows an error in my pom.xml, but mvn install
works fine from cmd line.
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:copy-resources (default-cli)
I am not sure if these 2 errors are related or not.
My setup:
- Windows 7 Pro (64 bit)
- JDK 1.6.0_31 (32 bit)
- Eclipse Juno 4.2
- Maven 3.0.5
- m2e 1.4.0