Class DefaultArtifactCreator

  • All Implemented Interfaces:
    ArtifactCreator

    public class DefaultArtifactCreator
    extends java.lang.Object
    implements ArtifactCreator
    Default artifact creator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void attachInstallers​(JPackageMojo mojo, long minTime)
      Attaches the installers created by the jpackage goal.
      void createAndAttachArtifact​(JLinkMojo mojo)
      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.
      void createAndAttachArtifact​(JPackageMojo mojo, java.io.File appImageDir)
      Creates and attaches the update ZIP file created by the jpackage goal.
      Invoked only if update feature is enabled.
      void processApplicationImage​(JPackageMojo mojo, java.io.File imageDir)
      Processes the created application image.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultArtifactCreator

        public DefaultArtifactCreator()
    • Method Detail

      • 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,
                                            java.io.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,
                                            java.io.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