Home

Awesome

Launch4j Maven Plugin

Originally hosted at http://9stmaryrd.com/tools/launch4j-maven-plugin/

GH Actions Maven Central

Documentation

Please check this document for more detailed info on how to use the plugin. Please also check Launch4j's Configuration file page. The full list of all the parameters is available here

NOTE: Since version 2.0.x this plugin requires to be used with Maven 3.6.x at least.

Version Notes

Please check the releases page for the exact versions notes

Version notes 2.3.3 - 2023-03-11

Version notes 2.3.2 - 2023-01-30

Version notes 2.3.1 - 2023-01-16

Version notes 2.3.0 - 2023-01-06

Version notes 2.2.0 - 2022-11-24

Version notes 2.1.3 - 2022-10-24

Version notes 2.1.1 - 2021-05-04

Version notes 2.1.0 - 2021-05-04

Version notes 2.0.1 - 2021-03-21

Version notes 2.0.0 - 2021-03-17

DO NOT USE THIS VERSION

Version notes 1.7.25

Version notes 1.7.24

Version notes 1.7.23

Version notes 1.7.22

Version notes 1.7.21

Version notes 1.7.20

Version notes 1.7.19

Version notes 1.7.18

Version notes 1.7.17

Version notes 1.7.16

Version notes 1.7.15

Version notes 1.7.14

Version notes 1.7.13

Version notes 1.7.12

Version notes 1.7.11

Version notes 1.7.10

Version notes 1.7.9

<configuration> 
    <infile>${project.basedir}/src/main/resources/my-app-config.xml</infile>
</configuration>

By default it will take from ${project.basedir}/src/main/resources/${project.artifactId}-launch4j.xml. Plugin execution goal should be set to install. It's an optional configuration, you can either use your existing configuration as it was in previous version or use native Launch4j config file via <infile>.

Version notes 1.7.8

Version notes 1.7.7

Version notes 1.7.6

Version notes 1.7.5

Version notes 1.7.4

Version notes 1.7.3

Version notes 1.7.2

Version notes 1.7.1

Version notes 1.7

Version notes 1.6

FAQ

Q: I cannot build my project because dsol-xml dependency is missing?

A: Add this repository to your ~/.m2/settings.xml

<repositories>
    <repository>
        <id>dsol-xml</id>
        <name>Simulation @ TU Delft</name>
        <url>http://simulation.tudelft.nl/maven/</url>
    </repository>
</repositories>

Q: Where can I find -SNAPSHOT builds?

A: Use the Sonatype OSS repo

<repositories>
    <repository>
        <id>sonatype-nexus-snapshots</id>
        <name>Sonatype Nexus Snapshots</name>
        <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        <releases>
            <enabled>false</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>

Q: Can I use Launch4j on 64bit OS?

A: Yes but you will have to install these libs to avoid problems:

See #4 for more details.

Q: How can I skip execution of the plugin?

A: You can either use <skip>true</skip> configuration option or provide -DskipLaunch4j property to JVM

See PR #190 for more details.