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, 2015 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, 2015 at 13:45
  • \$\begingroup\$ Thank you for answering my game related question, I will be sure to check it out \$\endgroup\$ Oct 22, 2015 at 7:40

1 Answer 1


This is the plugin you need

  • 1
    \$\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, 2019 at 13:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .