Skip to content

Repository files navigation

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

App Description Stars
WePush Bulk message sender: WeChat templates, SMS, email and more GitHub stars
MooTool Handy tool set for developers GitHub stars
bilibili-backup Backup and restore of Bilibili accounts GitHub stars
RedisFX Lightweight Redis GUI client (JavaFX) GitHub stars
RedisFront Cross-platform Redis client (Swing) GitHub stars
MooInfo System and hardware information viewer GitHub 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.

Releases

Used by

Contributors

Languages