Class JLinkMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.jlink.AbstractJLinkMojo
org.apache.maven.plugins.jlink.JLinkMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="jlink", requiresDependencyResolution=RUNTIME, defaultPhase=PACKAGE) public class JLinkMojo extends AbstractJLinkMojo
The JLink goal is intended to create a Java Run Time Image file based on https://openjdk.java.net/jeps/282, https://openjdk.java.net/jeps/220.
Author:
Karl Heinz Marbaise khmarbaise@apache.org
  • Constructor Details

    • JLinkMojo

      public JLinkMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • hasClassifier

      protected boolean hasClassifier()
      Returns:
      true in case where the classifier is not null and contains something else than white spaces.
    • createJlinkArgs

      protected List<String> createJlinkArgs(Collection<String> pathsOfModules, Collection<String> modulesToAdd)
    • getClassifier

      protected String getClassifier()
      Overload this to produce a zip with another classifier, for example a jlink-zip.
      Specified by:
      getClassifier in class AbstractJLinkMojo
      Returns:
      get the classifier.