javapackager/JavaPackager

Gradle/Maven plugin to package Java applications as native Windows, MacOS, or Linux executables and create installers for them.

Java

1,197

1,844 commits

updated Oct 16, 2026

See the code

README

JavaPackager logo

JavaPackager

Maven Central GPL-3.0 Docs

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.

Quick start

Maven

<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 package

Gradle

plugins {
    id 'io.github.javapackager' version '2.0.0'
}

javapackager {
    mainClass = 'com.example.Main'
}
gradle package

The app and its installers are generated in target/ or build/. See the documentation for every property, platform and guide.

Project maintainers needed

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.

👉 Join the discussion

Apps packaged with JavaPackager

AppDescriptionStars
WePushBulk message sender: WeChat templates, SMS, email and moreGitHub stars
MooToolHandy tool set for developersGitHub stars
bilibili-backupBackup and restore of Bilibili accountsGitHub stars
RedisFXLightweight Redis GUI client (JavaFX)GitHub stars
RedisFrontCross-platform Redis client (Swing)GitHub stars
MooInfoSystem and hardware information viewerGitHub stars

See all the apps packaged with JavaPackager.

Contributing

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.

deb
debian-packages
distribution
dmg
gradle
gradle-plugin
installer
java
java-applications
javapackager
linux-executables
maven
maven-plugin
msi
native
native-windows
packager
pkg
rpm
rpm-packages

javapackager/JavaPackager

Gradle/Maven plugin to package Java applications as native Windows, MacOS, or Linux executables and create installers for them.

Java

1,197

1,844 commits

updated Oct 16, 2026

See the code

README

JavaPackager logo

JavaPackager

Maven Central GPL-3.0 Docs

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.

Quick start

Maven

<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 package

Gradle

plugins {
    id 'io.github.javapackager' version '2.0.0'
}

javapackager {
    mainClass = 'com.example.Main'
}
gradle package

The app and its installers are generated in target/ or build/. See the documentation for every property, platform and guide.

Project maintainers needed

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.

👉 Join the discussion

Apps packaged with JavaPackager

AppDescriptionStars
WePushBulk message sender: WeChat templates, SMS, email and moreGitHub stars
MooToolHandy tool set for developersGitHub stars
bilibili-backupBackup and restore of Bilibili accountsGitHub stars
RedisFXLightweight Redis GUI client (JavaFX)GitHub stars
RedisFrontCross-platform Redis client (Swing)GitHub stars
MooInfoSystem and hardware information viewerGitHub stars

See all the apps packaged with JavaPackager.

Contributing

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.

deb
debian-packages
distribution
dmg
gradle
gradle-plugin
installer
java
java-applications
javapackager
linux-executables
maven
maven-plugin
msi
native
native-windows
packager
pkg
rpm
rpm-packages

Project health

Latest release

2.0.0 · Oct 11, 2026

Releases this year

1

Significant stargazers

okmyworld

1,863 followers · starred Sep 2023

Austin Shapiro

102 followers · starred Jun 2022

Maciej Walkowiak

1,455 followers · starred Sep 2023

Daniel Shuy

24 followers · starred Jul 2021