Bug 562

Summary: When loading a native jar search for filename+version to aid Maven support
Product: Default Reporter: John Klehm <xixsimplicityxix>
Component: defaultAssignee: Sven Gothel <sgothel>
Severity: enhancement CC: gouessej
Priority: ---    
Version: unspecified   
Hardware: All   
OS: all   
Type: --- SCM Refs:
Workaround: ---

Description John Klehm 2012-03-11 06:21:33 CET
Right now when jogl.all.jar and gluegen-rt.jar attempt to load their dependencies they look only for the name jogl-all-natives-PLATFORM.jar.  In Maven every artifact (jar or otherwise) needs to have a version number. 

So to support the automaticness of Maven we need to allow the loader to find this style file name:
jogl.all-VERSION.jar when it loads would attempt to find: jogl-all-PLATFORM-VERSION.jar

e.g. possible Maven repo for jogl layout


I propose to solve this by having the jogl.all.jar and gluegen-rt.jar search for a variation of their filename (which would grab the version in this case) e.g. jogl.all-2.0-b45-20111219.jar loadUrl searches for jogl.all-2.0-b45-20111219-PLATFORM.jar

Allowing the change I've outlined here would enable seamless support for JOGL in an Eclipse Indigo Maven project, you would be able to just add it to your pom and Eclipse would be ready to go.

I'm willing to make this patch if someone can tip me off to which area of the code does the searching.
Comment 1 Sven Gothel 2012-07-05 22:47:26 CEST
resolved in bug 598

*** This bug has been marked as a duplicate of bug 598 ***