Class JPacktoolJLinkMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo
net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractTemplateToolMojo
net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractPackageToolMojo
net.agilhard.maven.plugins.jpacktool.base.mojo.jlink.JLinkMojo
net.agilhard.maven.plugins.jpacktool.extend.mojo.JPacktoolJLinkMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

@Mojo(name="jlink",
      requiresDependencyResolution=RUNTIME,
      defaultPhase=PACKAGE,
      requiresProject=true)
public class JPacktoolJLinkMojo
extends net.agilhard.maven.plugins.jpacktool.base.mojo.jlink.JLinkMojo
The JLink goal is intended to create a Java Run Time Image file based on http://openjdk.java.net/jeps/282, http://openjdk.java.net/jeps/220. This extends the base class by some features for update4j.
Author:
Bernd Eilers
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractTemplateToolMojo

    net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractTemplateToolMojo.TemplateGenerator
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.String basePath
    The update4j basePath
    protected java.lang.String baseUri
    The update4j baseUri
    protected boolean generateUpdate4jConfig
    Set if to generate an update4j config file
    protected java.io.File jpacktoolProperties
    The jpacktool.properties file
    protected java.lang.String stripConfigName
    replace this with nothing in the name of the config file

    Fields inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.jlink.JLinkMojo

    appFolderName, bindServices, compress, disablePlugin, endian, ignoreSigningInformation, lastException, launcher, launcherTemplate, launcherTemplateScript, launcherTemplateScriptLinux, launcherTemplateScriptMac, launcherTemplateScriptWindows, mainClass, mainJar, mainModule, noHeaderFiles, noManPages, outputDirectoryImage, pluginModulePath, stripDebug, suggestProviders

    Fields inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractPackageToolMojo

    addJDKToLimitModules, addModules, arguments, automaticModulesFolderName, buildContext, classPathFolderName, context, dependencyGraphBuilder, finalName, ignoreAutomaticModules, JMODS, jPacktoolMoveAutomaticModules, jPacktoolMoveClassPathJars, jPacktoolMoveRealModules, jpacktoolPrepareUsed, jvmArgs, limitModules, mavenFileFilter, mavenResourcesFiltering, modulePaths, modulesFolderName, modulesToAdd, outputDirectory, packagingResources, pathsOfArtifacts, pathsOfModules, sourceJdkModules, unfilteredDependencyHandling

    Fields inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractTemplateToolMojo

    outputDirectoyTemplates, templateGenerator

    Fields inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo

    buildDirectory, classpathArtifacts, excludedArtifacts, javaVersion, jdkToolchain, jpacktoolModel, jpacktoolPropertyPrefix, locationManager, mavenProjectHelper, outputDirectoryAutomaticJars, outputDirectoryClasspathJars, outputDirectoryJPacktool, outputDirectoryModules, project, session, shouldSkipReason, skip, systemModules, templateMap, toolchainManager, verbose, zipArchiver

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors 
    Constructor Description
    JPacktoolJLinkMojo()  
  • Method Summary

    Modifier and Type Method Description
    protected void generateContent​(java.io.File outputDirectory)  
    protected void updateJvmArgs()  

    Methods inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.jlink.JLinkMojo

    checkShouldSkip, createJLinkCommandLine, executeResources, executeToolMain, failIfParametersAreNotInTheirValidValueRanges, generateContent, generateScript, getExecutable, getJLinkExecutable, hasSuggestProviders, ifOutputDirectoryExistsDeleteIt, initTemplates, moveJarToJLinkOutAutomatic, moveJarToJLinkOutClasspath, moveJarToJLinkOutModule, moveJPacktoolJars, updateModel

    Methods inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractPackageToolMojo

    addSystemModulesFromJPackToolPrepare, addSystemModulesToLimitModules, addToLimitModules, appendOrCreateJvmArgPath, checkJpacktoolPrepareUsed, contextualize, convertSeparatedModulePathToPlatformSeparatedModulePath, executeResources, failIfProjectHasAlreadySetAnArtifact, getAddModules, getArguments, getAutomaticModulesFolderName, getBuildContext, getBuildDirectory, getClassPathFolderName, getCommaSeparatedList, getCompileClasspathElements, getContext, getDependenciesToLink, getFinalName, getJpacktoolModel, getJvmArgs, getLimitModules, getMavenFileFilter, getMavenResourcesFiltering, getModulePathElements, getModulePaths, getModulesFolderName, getModulesToAdd, getOutputDirectory, getOutputDirectoyTemplates, getPackagingResources, getPathSeparatedList, getPathsOfArtifacts, getPathsOfModules, getPlatformDependSeparateList, getZipArchiver, hasLimitModules, initJPacktoolModel, isAddJDKToLimitModules, isIgnoreAutomaticModules, isjPacktoolMoveAutomaticModules, isjPacktoolMoveClassPathJars, isjPacktoolMoveRealModules, isJpacktoolPrepareUsed, prepareModules, prepareModules, projectHasAlreadySetAnArtifact, resolveAndCreate, updateJvmArgs

    Methods inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractTemplateToolMojo

    generateFromTemplate, getTemplateGenerator, getTemplateMap, initTemplate, loadResourceFileIntoString

    Methods inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo

    bytesToHex, createZipArchiveFromDirectory, execute, executeCommand, executeToolFinish, executeToolStart, getArtifactFile, getClasspathArtifacts, getExcludedArtifacts, getJavaVersion, getJdkToolchain, getJpacktoolPropertyPrefix, getLocationManager, getOutputDirectoryAutomaticJars, getOutputDirectoryClasspathJars, getOutputDirectoryJPacktool, getOutputDirectoryModules, getPluginVersion, getProject, getSession, getShouldSkipReason, getSystemModules, getToolchain, getToolchainManager, getToolExecutable, hasClassifier, isVerbose, publishJPacktoolProperties, publishSHA256, setShouldSkipReason

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • basePath

      @Parameter(required=false, readonly=false) protected java.lang.String basePath
      The update4j basePath
    • baseUri

      @Parameter(required=false, readonly=false) protected java.lang.String baseUri
      The update4j baseUri
    • jpacktoolProperties

      @Parameter(required=false, readonly=false) protected java.io.File jpacktoolProperties
      The jpacktool.properties file
    • generateUpdate4jConfig

      @Parameter(required=false, readonly=false, defaultValue="true") protected boolean generateUpdate4jConfig
      Set if to generate an update4j config file
    • stripConfigName

      @Parameter(required=false, readonly=false, defaultValue="-jpacktool") protected java.lang.String stripConfigName
      replace this with nothing in the name of the config file
  • Constructor Details

  • Method Details

    • generateContent

      protected void generateContent​(java.io.File outputDirectory) throws org.apache.maven.plugin.MojoExecutionException
      Overrides:
      generateContent in class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractPackageToolMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • updateJvmArgs

      protected void updateJvmArgs() throws org.apache.maven.plugin.MojoFailureException
      Overrides:
      updateJvmArgs in class net.agilhard.maven.plugins.jpacktool.base.mojo.jlink.JLinkMojo
      Throws:
      org.apache.maven.plugin.MojoFailureException