Class DefaultArtifactCreator

java.lang.Object
org.tentackle.maven.plugin.jlink.DefaultArtifactCreator
All Implemented Interfaces:
ArtifactCreator

public class DefaultArtifactCreator extends Object implements ArtifactCreator
Default artifact creator.
  • Constructor Details

    • DefaultArtifactCreator

      public DefaultArtifactCreator()
  • Method Details

    • createAndAttachArtifact

      public void createAndAttachArtifact(JLinkMojo mojo) throws org.apache.maven.plugin.MojoExecutionException
      Description copied from interface: ArtifactCreator
      Creates and attaches the ZIP file created by the jlink goal.
      This also provides the option to modify the created jlink directory before zipping it.
      Specified by:
      createAndAttachArtifact in interface ArtifactCreator
      Parameters:
      mojo - the jlink mojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if failed
    • processApplicationImage

      public void processApplicationImage(JPackageMojo mojo, File imageDir) throws org.apache.maven.plugin.MojoExecutionException
      Description copied from interface: ArtifactCreator
      Processes the created application image.
      Specified by:
      processApplicationImage in interface ArtifactCreator
      Parameters:
      mojo - the jpackage mojo
      imageDir - the directory of the application image created by the jpackage tool
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if failed
    • attachInstallers

      public void attachInstallers(JPackageMojo mojo, long minTime) throws org.apache.maven.plugin.MojoExecutionException
      Description copied from interface: ArtifactCreator
      Attaches the installers created by the jpackage goal.
      Specified by:
      attachInstallers in interface ArtifactCreator
      Parameters:
      mojo - the jpackage mojo
      minTime - the minimum creating time of the artifacts
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if failed
    • createAndAttachArtifact

      public void createAndAttachArtifact(JPackageMojo mojo, File appImageDir) throws org.apache.maven.plugin.MojoExecutionException
      Description copied from interface: ArtifactCreator
      Creates and attaches the update ZIP file created by the jpackage goal.
      Invoked only if update feature is enabled.
      Specified by:
      createAndAttachArtifact in interface ArtifactCreator
      Parameters:
      mojo - the jpackage mojo
      appImageDir - the application image directory
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if failed
      See Also:
      • AbstractJLinkMojo.withUpdater