Plugin Documentation

Goals available for this plugin:

Goal Description
jlink-jpackager:collect-jars Collect jars and jmods from maven dependencies and copy them to a target folder.
jlink-jpackager:collect-nonmod-jars Collect jars from maven dependencies which contain no module-info and copy them to a target folder.
jlink-jpackager:help Display help information on jlink-jpackager-maven-plugin.
Call mvn jlink-jpackager:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
jlink-jpackager:jlink The JLink goal is intended to create a Java Run Time Image file based on http://openjdk.java.net/jeps/282, http://openjdk.java.net/jeps/220.
jlink-jpackager:jpackager The JPackager goal is intended to create a native installer package file based on http://openjdk.java.net/jeps/343.
jlink-jpackager:jpacktool-prepare Prepare execution of the jlink and jpackager goals by analyzing java module dependencies and copying files.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 3.0
JDK 8
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>net.agilhard.maven.plugins</groupId>
          <artifactId>jlink-jpackager-maven-plugin</artifactId>
          <version>1.0.0-SNAPSHOT</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>net.agilhard.maven.plugins</groupId>
        <artifactId>jlink-jpackager-maven-plugin</artifactId>
        <version>1.0.0-SNAPSHOT</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"