facebook

Importing Jar to local repository fails

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #293651 Reply

    mfkilgore
    Member

    I am using Import Jar to Local Repository from the MyEclipse menu. I briefly see a stack trace indicating java.lang.UnsupportedClassVersionError: org/apache/maven/artifact/InvalidRepositoryException (Unsupported major.minor version 49.0).

    I do have a repository and have added other dependencies there. I have installed my own project to the repository. The Maven JDK is configured to be jdk1.6.0_06 which is installed on my machine.

    Have I missed another required configuration?

    #293669 Reply

    Loyal Water
    Member

    Can you change the Maven JDK to 1.5 and test this again. Does that help?

    #293685 Reply

    mfkilgore
    Member

    I currently have java 1.4x for support of an old project and java 6 on my machine. It sounds like you need me to install java 1.5 as well? I will do that and let you know the results.

    #293688 Reply

    mfkilgore
    Member

    I have installed Java 5 and changed the Maven JDK to 1.5, I am still have the exact same results… Following the error above which flashes by on the screen I see the following:
    1/19/09 3:54:51 PM PST: Error on removing indexing context local; Cannot delete C:\Tools\workspace7\.metadata\.plugins\org.maven.ide.eclipse\nexus\local\_0.cfs
    1/19/09 3:54:51 PM PST: Error on adding indexing context local; Cannot overwrite: C:\Tools\workspace7\.metadata\.plugins\org.maven.ide.eclipse\nexus\local\_0.cfs

    Next steps?

    #293775 Reply

    mfkilgore
    Member

    Update, here is what I have found works. First Java 5 is not required, Java 6 works fine. You must have both the Maven JDK and the default Java JDK set to the same version. I had my Java JDK for this workspace set to 1.4.x either switching that to Java 5 or switching both to Java 6 worked and i am able import to my local repository.

    Thanks,

    #293793 Reply

    Loyal Water
    Member

    Glad it worked. Thanks for letting us know.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Importing Jar to local repository fails

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in