While importing a Maven project into eclipse, you may sometimes get an error like "Unsupported IClasspathentry kind=4".
The best solution was found on this StackOverflow page. The 2nd solution provided by Sagar worked for me and fixed the issue.
Quick Fix :
In Eclipse, Right click the project -> Maven -> Disable Maven Nature
Open Terminal, go to the project directory and type mvn eclipse:clean
Now, again right click the project in Eclipse -> Configure -> Convert to Maven Project
Note that when you type mvn eclipse:clean in terminal, it deletes the old .classpath, .project files
[INFO] Deleting file: .project
[INFO] Deleting file: .classpath
[INFO] Deleting file: .wtpmodules
The best solution was found on this StackOverflow page. The 2nd solution provided by Sagar worked for me and fixed the issue.
Quick Fix :
In Eclipse, Right click the project -> Maven -> Disable Maven Nature
Open Terminal, go to the project directory and type mvn eclipse:clean
Now, again right click the project in Eclipse -> Configure -> Convert to Maven Project
Note that when you type mvn eclipse:clean in terminal, it deletes the old .classpath, .project files
[INFO] Deleting file: .project
[INFO] Deleting file: .classpath
[INFO] Deleting file: .wtpmodules
No comments:
Post a Comment