RUNJAR

helps create runnable java archives containing complete application.

You can use simple ant tasks (zip, unzip, etc) to build such a runnable jar, with runjar-boot to handle the application booting stuff.

Or you can use the runjar-maven-plugin which takes care of this for you.

Have a look at our plugin integration tests demonstrating the usage:

Both these samples demonstrate the shutdown functionality, which, in simple words, allows the application to instruct runjar-boot to perform specific action when the JVM is about to terminate.