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 booleanaddLinkedSystemJDepsImportsprotected ImportJDepsAndUdate4jConfigHandlerimportJDepsAndConfigHandlerprotected booleanpackForBusinessAppprotected java.lang.StringstripConfigNamereplace this with nothing in the name of the config fileFields inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.JPackToolPrepareMojo
finalName, genClassPathHandler, generateAutomaticJdeps, generateClassPathJdeps, generateModuleJdeps, ignoreMissingDeps, model, showAllDeps, skipCopy, skipJDeps, useListDepsFields inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractDependencyJarsMojo
dependencyGraphBuilder, handlerFields 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 -
Constructor Summary
Constructors Constructor Description JPacktoolPrepareExtendedMojo() -
Method Summary
Modifier and Type Method Description ImportJDepsAndUdate4jConfigHandlercreateImportJDepsAndConfigHandler()Create the ImportJDepsAndUdate4jConfigHandlerUnzipBootstrapHandlercreateUnzipBootstrapHandler()Create the UnzipBootstrapHandlervoidexecuteAfterJDeps()Hook from base class to execute something after the JDeps Handler has finished.voidexecuteBeforeCopy()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, setSkipJDepsMethods inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractDependencyJarsMojo
getDependencyGraphBuilder, getHandlerMethods 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
-
Field Details
-
addLinkedSystemJDepsImports
@Parameter(defaultValue="true", required=true, readonly=false) protected boolean addLinkedSystemJDepsImports -
packForBusinessApp
@Parameter(defaultValue="false", required=true, readonly=false) protected boolean packForBusinessApp -
stripConfigName
@Parameter(required=false, readonly=false, defaultValue="-jpacktool") protected java.lang.String stripConfigNamereplace this with nothing in the name of the config file -
importJDepsAndConfigHandler
-
-
Constructor Details
-
JPacktoolPrepareExtendedMojo
public JPacktoolPrepareExtendedMojo()
-
-
Method Details
-
executeBeforeCopy
public void executeBeforeCopy() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionHook for from base classes to execute something before has CollectJarsHandler is being called.- Overrides:
executeBeforeCopyin classnet.agilhard.maven.plugins.jpacktool.base.mojo.JPackToolPrepareMojo- Throws:
org.apache.maven.plugin.MojoExecutionException- on plugin execution errororg.apache.maven.plugin.MojoFailureException- on plugin failure
-
executeAfterJDeps
public void executeAfterJDeps() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionHook from base class to execute something after the JDeps Handler has finished.- Overrides:
executeAfterJDepsin classnet.agilhard.maven.plugins.jpacktool.base.mojo.JPackToolPrepareMojo- Throws:
org.apache.maven.plugin.MojoExecutionException- on plugin execution errororg.apache.maven.plugin.MojoFailureException- on plugin failure
-
createImportJDepsAndConfigHandler
public ImportJDepsAndUdate4jConfigHandler createImportJDepsAndConfigHandler() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionCreate the ImportJDepsAndUdate4jConfigHandler- Returns:
- the ImportJDepsAndUdate4jConfigHandler
- Throws:
org.apache.maven.plugin.MojoExecutionException- on plugin execution errororg.apache.maven.plugin.MojoFailureException- on plugin failure
-
createUnzipBootstrapHandler
public UnzipBootstrapHandler createUnzipBootstrapHandler() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionCreate the UnzipBootstrapHandler- Returns:
- the UnzipBootstrapHandler
- Throws:
org.apache.maven.plugin.MojoExecutionException- on plugin execution errororg.apache.maven.plugin.MojoFailureException- on plugin failure
-