Class DefaultArtifactCreator

    • 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,
                                            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