Saturday, July 20, 2013

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



Problem
After using the command mvn eclipse:eclipse, the project is imported by Eclipse using the "Existing Maven Projects", which throws the error message:
An internal error occurred during: Importing Maven projects. Unsupported IClasspathEntry kind=4

Solution
Do not use the "mvn eclipse:eclipse" command.
Do a straight import by Eclipse using the "Existing Maven Projects".
An incompatibility is commented here.

TIP
About compatibilities between command line vs. Eclipse's maven plugin, when the "Run Maven Build" option (Shift+Alt+X M) doesn't work properly, use the command line as follows:

cd project_root (where pom.xml is)
mvn install -U

Return to Eclipse and refresh the project (F5 over project).

No comments:

Post a Comment

VMware Workstation: configuring shared folders for Debian 11-12 and Ubuntu

  1. Configure the shared folders. - Before starting the virtual machine, set the VMware shared files config. Example: NOTE: Debian 11 works...