Class PackageBootstrapMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo
net.agilhard.maven.plugins.jpacktool.mojo.PackageBootstrapMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="jpacktool-pack-bootstrap",
requiresDependencyResolution=RUNTIME,
defaultPhase=PACKAGE,
requiresProject=true)
public class PackageBootstrapMojo
extends net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo
Package a Bootstrap Application which can start a Business Application.
- Author:
- Bernd Eilers
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringbasePathThe Update4j basePath Setting for the Business Application.protected java.lang.StringbaseUriThe update4j baseUriprotected java.lang.StringfinalNameName of the generated ZIP file in thetargetdirectory.protected booleangenerateUpdate4jConfigprotected booleanjpacktoolPrepareUsedFlag if jpacktool-prepare goal has been used beforeprotected java.lang.StringstripConfigNamereplace this with nothing in the name of the config fileFields 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 PackageBootstrapMojo() -
Method Summary
Modifier and Type Method Description protected voidcheckJpacktoolPrepareUsed()set jpacktoolPrepareUsed variable based on maven propertyvoidexecuteToolMain()java.lang.StringgetFinalName()protected voidinitJPacktoolModel()initialize jpacktooModelMethods inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo
bytesToHex, checkShouldSkip, 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
-
Field Details
-
finalName
@Parameter(defaultValue="${project.build.finalName}", readonly=true) protected java.lang.String finalNameName of the generated ZIP file in thetargetdirectory. This will not change the name of the installed/deployed file. -
stripConfigName
@Parameter(required=false, readonly=false, defaultValue="-jpacktool") protected java.lang.String stripConfigNamereplace this with nothing in the name of the config file -
basePath
@Parameter(required=false, readonly=false) protected java.lang.String basePathThe Update4j basePath Setting for the Business Application. -
baseUri
@Parameter(required=false, readonly=false) protected java.lang.String baseUriThe update4j baseUri -
generateUpdate4jConfig
@Parameter(required=false, readonly=false, defaultValue="true") protected boolean generateUpdate4jConfig -
jpacktoolPrepareUsed
protected boolean jpacktoolPrepareUsedFlag if jpacktool-prepare goal has been used before
-
-
Constructor Details
-
PackageBootstrapMojo
public PackageBootstrapMojo()
-
-
Method Details
-
executeToolMain
public void executeToolMain() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executeToolMainin classnet.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
checkJpacktoolPrepareUsed
protected void checkJpacktoolPrepareUsed()set jpacktoolPrepareUsed variable based on maven property -
initJPacktoolModel
protected void initJPacktoolModel()initialize jpacktooModel -
getFinalName
public java.lang.String getFinalName()- Overrides:
getFinalNamein classnet.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo
-