Class GenerateJLinkPomMojo
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.mojo.AbstractGenerateJPacktoolPomMojo
net.agilhard.maven.plugins.jpacktool.mojo.GenerateJLinkPomMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="jpacktool-generate-jlink",
requiresDependencyResolution=NONE,
defaultPhase=GENERATE_SOURCES,
requiresProject=true)
public class GenerateJLinkPomMojo
extends AbstractGenerateJPacktoolPomMojo
Generate pom for packaging a project using a Bootstrap and a Business
Application and use JLink as the final step.
- Author:
- Bernd Eilers
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringlauncherTemplateScriptLinuxName of the script generated from launcherTemplate for linuxprotected java.lang.StringlauncherTemplateScriptMacName of the script generated from launcherTemplate for macprotected java.lang.StringlauncherTemplateScriptWindowsName of the script generated from launcherTemplate for windowsprotected java.io.FileoutputDirectoryImageThe output directory for the resulting Run Time Image when packagingTool is "jlink" The created Run Time Image is stored in non compressed form.protected java.lang.StringtemplateBootstrapJLinkThe Template for generating the pom for a final JLink StepFields inherited from class net.agilhard.maven.plugins.jpacktool.mojo.AbstractGenerateJPacktoolPomMojo
addJDKToLimitModules, addModules, automaticModulesFolderName, bootstrapArguments, bootstrapArtifactId, bootstrapBasePath, bootstrapBasePathBelowHomeDir, bootstrapBasePathBelowUserDir, bootstrapBaseUri, bootstrapGroupId, bootstrapMainClass, bootstrapMainModule, bootstrapVersion, businessArguments, businessArtifactId, businessBasePath, businessBasePathBelowHomeDir, businessBasePathBelowUserDir, businessBaseUri, businessGroupId, businessMainClass, businessVersion, classPathFolderName, jvmArgs, limitModules, modulePaths, modulesFolderName, outputDirectoryBuild, projectArtifactId, projectGroupId, projectVersion, sourceJdkModules, stripConfigName, templateBootstrap, templateBusiness, templateMainFields inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractTemplateToolMojo
outputDirectoyTemplates, templateGeneratorFields 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 GenerateJLinkPomMojo() -
Method Summary
Modifier and Type Method Description protected voidgeneratePoms(java.io.File mainDir)java.lang.StringgetPackagingTool()protected voidinitJPacktoolModel()protected voidinitTemplates()Methods inherited from class net.agilhard.maven.plugins.jpacktool.mojo.AbstractGenerateJPacktoolPomMojo
executeToolMain, failIfParametersAreNotInTheirValidValueRanges, generatePom, generatePoms, initDefaults, writePropertiesMethods inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractTemplateToolMojo
generateFromTemplate, getTemplateGenerator, getTemplateMap, initTemplate, loadResourceFileIntoStringMethods 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
-
launcherTemplateScriptWindows
@Parameter(defaultValue="start.ps1") protected java.lang.String launcherTemplateScriptWindowsName of the script generated from launcherTemplate for windows -
launcherTemplateScriptMac
@Parameter(defaultValue="start.sh") protected java.lang.String launcherTemplateScriptMacName of the script generated from launcherTemplate for mac -
launcherTemplateScriptLinux
@Parameter(defaultValue="start.sh") protected java.lang.String launcherTemplateScriptLinuxName of the script generated from launcherTemplate for linux -
templateBootstrapJLink
@Parameter(required=false, readonly=false, defaultValue="resource:/templates/pom/main-jpacktool/bootstrap-jlink/pom.xml") protected java.lang.String templateBootstrapJLinkThe Template for generating the pom for a final JLink Step -
outputDirectoryImage
@Parameter(defaultValue="${project.build.directory}/jlink", required=true, readonly=true) protected java.io.File outputDirectoryImageThe output directory for the resulting Run Time Image when packagingTool is "jlink" The created Run Time Image is stored in non compressed form. This will later being packaged into azipfile.--output <path>
-
-
Constructor Details
-
GenerateJLinkPomMojo
public GenerateJLinkPomMojo()
-
-
Method Details
-
getPackagingTool
public java.lang.String getPackagingTool()- Specified by:
getPackagingToolin classAbstractGenerateJPacktoolPomMojo
-
initTemplates
protected void initTemplates() throws org.apache.maven.plugin.MojoFailureException- Overrides:
initTemplatesin classAbstractGenerateJPacktoolPomMojo- Throws:
org.apache.maven.plugin.MojoFailureException
-
generatePoms
protected void generatePoms(java.io.File mainDir) throws org.apache.maven.plugin.MojoFailureException- Specified by:
generatePomsin classAbstractGenerateJPacktoolPomMojo- Throws:
org.apache.maven.plugin.MojoFailureException
-
initJPacktoolModel
protected void initJPacktoolModel() throws org.apache.maven.plugin.MojoFailureException- Overrides:
initJPacktoolModelin classAbstractGenerateJPacktoolPomMojo- Throws:
org.apache.maven.plugin.MojoFailureException
-