Class JlinkMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
ru.akman.maven.plugins.BaseToolMojo
ru.akman.maven.plugins.jlink.JlinkMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="jlink", requiresDependencyResolution=RUNTIME) public class JlinkMojo extends BaseToolMojo
The jlink goal lets you create a custom runtime image with the jlink tool introduced in Java 9. It used to link a set of modules, along with their transitive dependences.

The main idea is to avoid being tied to project artifacts and allow the user to fully control the process of creating an image. However, it is possible, of course, to customize the process using project artifacts.

  • Constructor Details

    • JlinkMojo

      public JlinkMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Execute goal.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if any errors occurred