Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » Javax.Persistence Problem(Gemini JPA with EclipseLink on OSGi)
Javax.Persistence Problem [message #1728796] Thu, 07 April 2016 12:30 Go to next message
Harrison Ssamanya is currently offline Harrison SsamanyaFriend
Messages: 12
Registered: November 2015
Junior Member
Hello
Am trying out "org.eclipse.gemini.jpa_1.1.0.RELEASE" for my thesis project
However, this Gemini requires a package: javax.persistence; version="1.1.0".
Error on build is:
- The bundle "org.eclipse.gemini.jpa_1.1.0.RELEASE [xx]" could not be resolved. Reason: Missing Constraint: Import-Package: javax.persistence; version="1.1.0". But I had org.eclipse.persistence : javax.persistence : 2.1.1 configured

Problems:
- The version of javax.persistence (1.1.0) does not seem to exist on any Repository.
- But this Gemini jpa seem not to work with other versions of Javax.Persistence and wants only javax.persistence 1.1.0
- If I try to change to Gemini 1.2.0, not repositories have this too.

Question what are the possible solutions to these problems?
thanks in andvance.
Below are the repository i have configured in my maven
- repository.springsource.com/maven
- download.eclipse.org/gemini/mvn
- maven.alfresco.com/nexus/content/repositories/public/ and of course
- repo1.maven.org/maven2
Re: Javax.Persistence Problem [message #1728937 is a reply to message #1728796] Fri, 08 April 2016 14:08 Go to previous messageGo to next message
Michael Keith is currently offline Michael KeithFriend
Messages: 243
Registered: July 2009
Senior Member
Hi Harrison,

Use Gemini JPA 1.2.1 M1 drop. That has the version compatibility issues sorted for the latest versions. You will have to manually install in your local maven cache, though, as it is not in the maven repo.

Thanks,
-Mike
icon14.gif  Re: Javax.Persistence Problem [message #1729033 is a reply to message #1728937] Sat, 09 April 2016 19:45 Go to previous message
Harrison Ssamanya is currently offline Harrison SsamanyaFriend
Messages: 12
Registered: November 2015
Junior Member
Hello Michael,
Thanks for your reply. Actually I have done that and now I seem to be up and running.

For those who may be wondering how to go about it:
1) Download Gemini JPA 1.2.0.M1 to local directory
2) Provide values for the Xs in the maven command below. Remember to make it a one line command and removing the slashes
3) Open the shell and execute the command.

mvn install:install-file -DgroupId=XXXXXX \
-DartifactId=XXXXXX \
-Dversion=xx.xx.xx \
-Dpackaging=jar -Dfile=XXXXXXX.jar
Previous Topic:[Gemini Blueprint] Keep Getting Failed to load class org.slf4j.impl.StaticLoggerBinder
Next Topic:Problem with getting gemini.jpa to work
Goto Forum:
  


Current Time: Sun Nov 18 20:37:40 GMT 2018

Powered by FUDForum. Page generated in 0.02094 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top