I am trying to use Maven to manage building my LWJGL projects. The entire project needs to be packed into a single executable jar, dependencies, natives and resources included, so that can be easily distributed. I have been using JarSplice to do this until now.

Is it possible to do the same with Maven?

My attempts thus far have failed: either the main class/natives could not be located or OpenAL would crash when I tried to execute the jar file.

My current pom.xml is below:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">






  • \$\begingroup\$ Van you add you pom.xml to the question? \$\endgroup\$ – Verhagen Oct 19 '15 at 17:25
  • \$\begingroup\$ This has nothing to do with GameDevelopment at all (You could replace LWJGL with any other lib and still have the same problem). But something to google for: maven uber jar \$\endgroup\$ – tkausl Oct 20 '15 at 13:45
  • \$\begingroup\$ Thank you for answering my game related question, I will be sure to check it out \$\endgroup\$ – Blunderchips Oct 22 '15 at 7:40

This is the plugin you need

  • \$\begingroup\$ This answer would be even better if it explained why this answer works, or how the user can follow the strategy you used to determine the right markup to use. \$\endgroup\$ – DMGregory Jan 13 '19 at 13:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.