Class JPacktoolPrepareExtendedMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo
net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractDependencyJarsMojo<net.agilhard.maven.plugins.jpacktool.base.handler.GenerateJDepsHandler>
net.agilhard.maven.plugins.jpacktool.base.mojo.JPackToolPrepareMojo
net.agilhard.maven.plugins.jpacktool.extend.mojo.JPacktoolPrepareExtendedMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="jpacktool-prepare",
      requiresDependencyResolution=RUNTIME,
      defaultPhase=PREPARE_PACKAGE,
      requiresProject=true)
public class JPacktoolPrepareExtendedMojo
extends net.agilhard.maven.plugins.jpacktool.base.mojo.JPackToolPrepareMojo
Extended class to prepare execution of the jlink and jpackager goals by analyzing java module dependencies and copying files. This extends the base class by some features for update4j.
Author:
Bernd Eilers
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected boolean addLinkedSystemJDepsImports  
    protected ImportJDepsAndUdate4jConfigHandler importJDepsAndConfigHandler  
    protected boolean packForBusinessApp  
    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.JPackToolPrepareMojo

    finalName, genClassPathHandler, generateAutomaticJdeps, generateClassPathJdeps, generateModuleJdeps, ignoreMissingDeps, model, showAllDeps, skipCopy, skipJDeps, useListDeps

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

    dependencyGraphBuilder, handler

    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
    JPacktoolPrepareExtendedMojo()  
  • Method Summary

    Modifier and Type Method Description
    ImportJDepsAndUdate4jConfigHandler createImportJDepsAndConfigHandler()
    Create the ImportJDepsAndUdate4jConfigHandler
    UnzipBootstrapHandler createUnzipBootstrapHandler()
    Create the UnzipBootstrapHandler
    void executeAfterJDeps()
    Hook from base class to execute something after the JDeps Handler has finished.
    void executeBeforeCopy()
    Hook for from base classes to execute something before has CollectJarsHandler is being called.

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

    createCopyHandler, createHandler, creatGenClassPathHandler, executeToolMain, isSkipCopy, isSkipJDeps, putModel, setSkipCopy, setSkipJDeps

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

    getDependencyGraphBuilder, getHandler

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

    bytesToHex, checkShouldSkip, createZipArchiveFromDirectory, execute, executeCommand, executeToolFinish, executeToolStart, getArtifactFile, getClasspathArtifacts, getExcludedArtifacts, getFinalName, 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

  • Constructor Details

  • Method Details

    • executeBeforeCopy

      public void executeBeforeCopy() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Hook for from base classes to execute something before has CollectJarsHandler is being called.
      Overrides:
      executeBeforeCopy in class net.agilhard.maven.plugins.jpacktool.base.mojo.JPackToolPrepareMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - on plugin execution error
      org.apache.maven.plugin.MojoFailureException - on plugin failure
    • executeAfterJDeps

      public void executeAfterJDeps() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Hook from base class to execute something after the JDeps Handler has finished.
      Overrides:
      executeAfterJDeps in class net.agilhard.maven.plugins.jpacktool.base.mojo.JPackToolPrepareMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - on plugin execution error
      org.apache.maven.plugin.MojoFailureException - on plugin failure
    • createImportJDepsAndConfigHandler

      public ImportJDepsAndUdate4jConfigHandler createImportJDepsAndConfigHandler() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Create the ImportJDepsAndUdate4jConfigHandler
      Returns:
      the ImportJDepsAndUdate4jConfigHandler
      Throws:
      org.apache.maven.plugin.MojoExecutionException - on plugin execution error
      org.apache.maven.plugin.MojoFailureException - on plugin failure
    • createUnzipBootstrapHandler

      public UnzipBootstrapHandler createUnzipBootstrapHandler() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Create the UnzipBootstrapHandler
      Returns:
      the UnzipBootstrapHandler
      Throws:
      org.apache.maven.plugin.MojoExecutionException - on plugin execution error
      org.apache.maven.plugin.MojoFailureException - on plugin failure