LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: pas2al on November 21, 2014, 13:33:07

Title: LWJGL3 and Maven
Post by: pas2al on November 21, 2014, 13:33:07
Hi, i want to program a new game using the new version 3 of lwjgl. The question is, how to build the game in a professional and useful way. Currently i use Maven on different other projects and i have experience with maven. But the new version is not available in the maven central repo. (Maybe because there is no official release) What would be the best way to do it? Should i use something else, like Ant or should i stay with Maven, add the Library by myself and if the version is available in the maven central repo, switch to dependency via pom.xml?
Title: Re: LWJGL3 and Maven
Post by: spasi on November 21, 2014, 13:49:47
The plan is to deploy the 3.x.x releases (not the 3.0 alpha/beta releases) to Maven Central. Until then, it's better if you add it manually, there's no need to switch if you're used to maven.
Title: Re: LWJGL3 and Maven
Post by: pas2al on November 21, 2014, 14:16:37
Ok, thx. I used already version 2.9.1 with maven and it worked fine. But i have one more question. It was possible to run the game, but if i tried to build an executable jar-file i had different problems with the library and natives. Do you have a good reference how to build an executable jar? I checked some post on stackoverflow etc. but there were a lot of hacks and dirty solutions.
Title: Re: LWJGL3 and Maven
Post by: spasi on November 21, 2014, 14:48:49
See Capsule (https://github.com/puniverse/capsule). I haven't tried it, but it looks promising. For more options, you may want to ask this on JGO (http://www.java-gaming.org/).
Title: Re: LWJGL3 and Maven
Post by: pas2al on November 21, 2014, 15:37:56
Ok, thanks :-)
Title: Re: LWJGL3 and Maven
Post by: lightbringer on November 21, 2014, 21:42:34
As an alternative to executable Jar's, consider also custom wrappers like launch4j. For desktop games especially this makes sense as gamers are familiar with and expect executables but are not generally familiar with Java.

For Maven, until an official release happens and gets pushed to Maven Central, IMHO your best bet is to just make a local repository (https://devcenter.heroku.com/articles/local-maven-dependencies) and put the nightly lwjgl there. Then you'll be able to switch easily later on.
Title: Re: LWJGL3 and Maven
Post by: pas2al on November 21, 2014, 23:42:12
Version 3, when will it be released? (Days, months? Any time plans?)