Welcome to Software Ninja blog - your ultimate destination for mastering software development and data manipulation. Explore cutting-edge techniques and expert tips to sharpen your coding skills and become a data virtuoso. Let's embark on a journey of discovery together!
Monday, October 8, 2007
Using Maven to create a one-jar executable jar.
Oliver's Blog: "Using Maven2 to generate an executable JAR"
Has instructions on getting the onejar-maven-plugin to work. This is similar to what UberJar used to to do. It takes all maven dependencies and places those jars into the output jar. It does not explode the jars as the assembly plugin is wont to do. Instead, it used the one-jar package that has a classloader that knows how to look into the jar file for other jar files. It makes for a cleaner jar file that is easier to maintain later.
It does allow the filename to be specified, but does not seem to allow manifest entries, like Implementation-Version.
Thanks Oliver.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment