Fixing Error – Importing Maven projects".Unsupported IClasspathEntry kind=4

When i am working with eclipse, I tried to import a project using maven.

Before importing the project, it should be converted into eclipse project
  mvn eclipse: eclipse
Then i found the following error.
An internal error occurred during: “Importing Maven projects”.Unsupported IClasspathEntry kind=4
This bug is being discussed in  here.

<classpathentry kind="var" path="M2_REPO/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.1.Final/hibernate-jpa-2.0-api-1.0.1.Final.jar">
</classpathentry>

Where is the value kind = “var” that M2E does not recognize and therefore throws the error.

Now type this.
mvn eclipse: clean

Now refresh the project in eclipse or re-import.

Advertisements

4 thoughts on “Fixing Error – Importing Maven projects".Unsupported IClasspathEntry kind=4

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s