Class JlinkMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="jlink",
          defaultPhase=PACKAGE,
          requiresDependencyCollection=RUNTIME,
          requiresDependencyResolution=RUNTIME)
    public class JlinkMojo
    extends UpdateModules
    Implements the goal jlink. Jlink calls the jlink command. Before it is done, it copies all needed jar to the module dir. Than it tests if the jars are automatic modules, if so it generates the module-info and adds it to the jar.
    • Constructor Detail

      • JlinkMojo

        public JlinkMojo()
        The default constructor.
      • JlinkMojo

        protected JlinkMojo​(org.apache.maven.plugin.logging.Log pLog,
                            org.apache.maven.project.MavenProject pProject,
                            org.apache.maven.project.MavenProjectHelper helper,
                            CompressEnum pCompress,
                            boolean minData,
                            boolean openmodule,
                            boolean createMissing,
                            String... launcherArray)
        The constructor for testing.
        Parameters:
        pLog - the MockLog.
        pProject - the param project.
        helper - the project helper.
        pCompress - the compress enum.
        minData - nin data.
        openmodule - openmodule.
        createMissing - create missing classes in missing module.
        launcherArray - the launchers as array.
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        The implementation of the Mojo.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - is thrown if an error occurs.