Packaging JOGL as an OSGi bundle using Apache Maven and Felix

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Packaging JOGL as an OSGi bundle using Apache Maven and Felix

elemings
I know this topic has been covered a hundred times over but almost all of them either use an outdated version of JOGL (that doesn't package native libraries inside jars) or use the Eclipse framework.

Can anyone point me to a plain old Maven project that uses Apache Felix to package a recent version of JOGL as an OSGi bundle?

Thanks,
Eric.
Reply | Threaded
Open this post in threaded view
|

Re: Packaging JOGL as an OSGi bundle using Apache Maven and Felix

gouessej
Administrator
Hi

Look at my tutorial about JogAmp's Ardor3D Continuation, there is one example of project on Github quoted in this tutorial that creates OSGI bundles based on JOGL 2 and Ardor3D.

WadeWalker can probably help you, he knows OSGI.

I used OSGI with JOGL 2 in 2010. I should have put my modules somewhere in public :s
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Packaging JOGL as an OSGi bundle using Apache Maven and Felix

gouessej
Administrator
In reply to this post by elemings
I have found this but it's outdated:
https://github.com/agentlab/ardor3d4e

Look at WadeWalker's stuff, maybe you'll find something:
https://github.com/WadeWalker/com.jogamp.jogl
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Packaging JOGL as an OSGi bundle using Apache Maven and Felix

Wade Walker
Administrator
In reply to this post by elemings
Sorry, I've never done it outside of Eclipse :)
Reply | Threaded
Open this post in threaded view
|

Re: Packaging JOGL as an OSGi bundle using Apache Maven and Felix

elemings
In reply to this post by gouessej
Hi Julien,

I found this page: https://github.com/Renanse/Ardor3D/wiki.  Is that the one you were referring to?  Can you give me a more precise link to the OSGi bundles you were referring to?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Packaging JOGL as an OSGi bundle using Apache Maven and Felix

gouessej
Administrator
The links are above, I was thinking about ardor3d4e. Have you looked at those guides?
http://wso2.com/library/tutorials/develop-osgi-bundles-using-maven-bundle-plugin/
http://books.sonatype.com/mcookbook/reference/osgi.html

The link you posted points out to Ardor3D (!= JogAmp's Ardor3D Continuation).
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Packaging JOGL as an OSGi bundle using Apache Maven and Felix

elemings
In reply to this post by elemings
After a lot of Google searching, I finally found this which led me to a working solution: https://github.com/BaderLab/cy3d-impl/blob/master/src/main/java/org/baderlab/cy3d/internal/JoglInitializer.java.

Even this implementation was written for a slightly older Jogl version and needs tweaks to make it work for Jogl 2.3.x.  On the plus side, it (mostly) uses OSGi common interfaces so it should work with Equinox, Felix, or any other OSGi platform.

I'll post a more elegant solution once I have all of the kinks worked out.