EasyPack Maven Plugin facilitates the distribution of Java applications in tar, zip and tar.gz formats.
The plugin introduces three new packaging types for using instead of the standard jar and war options. The final artifact is a tar, zip or tar.gz archive that includes the java application.
The pom will look like:
<groupId>com.my-company</groupId>
<artifactId>my-app</artifactId>
<version>1.0-SNAPSHOT<version>
<packaging> jtar </packaging>
<groupId>com.my-company</groupId>
<artifactId>my-app</artifactId>
<version>1.0-SNAPSHOT<version>
<packaging> jzip </packaging>
<groupId>com.my-company</groupId>
<artifactId>my-app</artifactId>
<version>1.0-SNAPSHOT<version>
<packaging> jtargz </packaging>
-
Java applications in tar, zip or tar.gz: the final artifact is in tar, zip or tar.gz format.
-
Start and stop script creation: start and stops scripts for linux and/or windows are automatically created.
-
Dependency management: the project dependencies are automatically included in the final artifact.
-
No deploy of useless artifacts: the jar or war file generated by the standard packagings, is not deployed in the Maven repository as only one artifact, in the required format, is created.
In the Usage page there is a full explanation of how to use the plugin.
We are testing the plugin in order to release a stable version. But if you want to try it, and help us testing meanwhile, there is a beta version that can be used. The plugin is available at Mave Central Repository so no extra repository configuration is required.
<groupId>com.github.easypack</groupId>
<artifactId>easypack-maven-plugin</artifactId>
<version>1.0.BETA</version>
<extensions>true</extensions>
Check the Usage page for more information.