JavaPackager is a hybrid plugin for Maven and Gradle that packages Java applications as native Windows, macOS and GNU/Linux executables, and generates installers for them: Inno Setup, MSI, DMG, PKG, DEB, RPM and AppImage, with an optional customized JRE.
📚 Documentation: https://javapackager.github.io/JavaPackager/
Warning
Since 2.0.0 the coordinates are io.github.javapackager (groupId, Gradle plugin id and Java packages). See Upgrading to 2.0.
<plugin>
<groupId>io.github.javapackager</groupId>
<artifactId>javapackager</artifactId>
<version>2.0.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>package</goal>
</goals>
<configuration>
<mainClass>com.example.Main</mainClass>
<bundleJre>true</bundleJre>
</configuration>
</execution>
</executions>
</plugin>mvn packageplugins {
id 'io.github.javapackager' version '2.0.0'
}
javapackager {
mainClass = 'com.example.Main'
}gradle packageThe app and its installers are generated in target/ or build/. See the documentation for every property, platform and guide.
JavaPackager has been maintained for many years, but its maintainers have little time. To keep it alive, we're looking for contributors to help with issues, reviews and documentation.
| App | Description | Stars |
|---|---|---|
| WePush | Bulk message sender: WeChat templates, SMS, email and more | |
| MooTool | Handy tool set for developers | |
| bilibili-backup | Backup and restore of Bilibili accounts | |
| RedisFX | Lightweight Redis GUI client (JavaFX) | |
| RedisFront | Cross-platform Redis client (Swing) | |
| MooInfo | System and hardware information viewer |
See all the apps packaged with JavaPackager.
Pull requests go to the devel branch. See Contributing to build the plugin and run the smoke tests, and the releases for what changed in each version.
JavaPackager is released under the GPL-3.0 license.
