Home > eclipse, Java > Fixing Error – Importing Maven projects".Unsupported IClasspathEntry kind=4

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
Categories: eclipse, Java
  1. Oana
    March 11, 2013 at 5:14 pm

    I tried this, still doesn’t work..

  2. bob
    April 4, 2013 at 2:21 pm

    mvn eclipse: clean

    … was it a typo?

    Anyway, running mvn eclipse:clean (without space) worked!

    Thanks!

    • supun dharmarathne
      June 6, 2013 at 9:48 am

      u re welcome Bob

  3. rahman
    December 27, 2013 at 4:18 am

    thanks

  1. No trackbacks yet.

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

%d bloggers like this: