LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: obi on November 19, 2009, 08:56:42

Title: Maven repository file for lwjgl 2.2.1
Post by: obi on November 19, 2009, 08:56:42
I took me some time and made this maven repository file for lwjgl 2.2.1.

maven-lwjgl-repository.zip (http://sites.google.com/site/obisoftware/home/files/maven-lwjgl-repository.zip)

The only thing you need to do is unpack the repository in your project then add


 <repository>
   <id>local.project</id>
   <name>local.project</name>
   <url>file://${project.basedir}/repository</url>
 </repository>


Then just add the lwjgl artifacts. You can see how I handle the native libs in the eclipse sample project below.

This empty project has a pom that lets you run the lwjgl tests with just a few clicks.
1. Run the maven-compile launcher for your platform
2. Refresh the eclipse project.
3. Right click the project and Run As -> Java application then select the test you want to run :)

lwjgl-test.zip (http://sites.google.com/site/obisoftware/home/files/lwjgl-test.zip)

It will fetch the right native files to depending on what profile you run.

Have fun!