Results 1 to 4 of 4

Thread: Cannot update maven project

  1. #1
    Join Date
    May 2010
    Posts
    14

    Default Cannot update maven project

    When I try update imported maven project I receive:

    An internal error occurred during: "Updating maven projects ".

    Stack trace:

    java.lang.IllegalArgumentException: Unsupported IClasspathEntry kind=4
    at org.eclipse.m2e.jdt.internal.ClasspathEntryDescrip tor.toClasspathEntry(ClasspathEntryDescriptor.java :131)
    at org.eclipse.m2e.jdt.internal.ClasspathDescriptor.g etEntries(ClasspathDescriptor.java:134)
    at org.eclipse.m2e.jdt.internal.AbstractJavaProjectCo nfigurator.configure(AbstractJavaProjectConfigurat or.java:141)
    at org.eclipse.m2e.core.project.configurator.Abstract LifecycleMapping.configure(AbstractLifecycleMappin g.java:109)
    at org.eclipse.m2e.core.internal.project.ProjectConfi gurationManager.updateProjectConfiguration(Project ConfigurationManager.java:414)
    at org.eclipse.m2e.core.internal.project.ProjectConfi gurationManager.updateProjectConfiguration(Project ConfigurationManager.java:351)
    at org.eclipse.m2e.core.internal.project.ProjectConfi gurationManager.updateProjectConfiguration(Project ConfigurationManager.java:279)
    at org.eclipse.m2e.core.internal.project.ProjectConfi gurationManager.updateProjectConfiguration(Project ConfigurationManager.java:268)
    at org.maven.ide.eclipse.wtp.internal.preferences.Mav enWtpPreferencePage$3.runInWorkspace(MavenWtpPrefe rencePage.java:293)
    at org.eclipse.core.internal.resources.InternalWorksp aceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:54)
    What the reason? Does exist workaround? Thanks.

  2. #2
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,640

    Default

    Hey!

    This sounds a lot like this problem:
    http://stackoverflow.com/questions/1...thentry-kind-4

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  3. #3
    Join Date
    May 2006
    Posts
    20

    Default

    Martin, shouldn't this issue "kind=var" be fixed in STS? Why not support it?

    Thanks

  4. #4
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,640

    Default

    Hey!

    The issue is with the Maven Integration for Eclipse:
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=394042

    So we cannot fix this ourselves directly in STS. In the meantime, I hope the workaround described at stackoverflow helps!

    Cheers,
    -Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •