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.String
launcherTemplateScriptLinux
Name of the script generated from launcherTemplate for linuxprotected java.lang.String
launcherTemplateScriptMac
Name of the script generated from launcherTemplate for macprotected java.lang.String
launcherTemplateScriptWindows
Name of the script generated from launcherTemplate for windowsprotected java.io.File
outputDirectoryImage
The 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.String
templateBootstrapJLink
The 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, templateMain
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
-
Constructor Summary
Constructors Constructor Description GenerateJLinkPomMojo()
-
Method Summary
Modifier and Type Method Description protected void
generatePoms(java.io.File mainDir)
java.lang.String
getPackagingTool()
protected void
initJPacktoolModel()
protected void
initTemplates()
Methods inherited from class net.agilhard.maven.plugins.jpacktool.mojo.AbstractGenerateJPacktoolPomMojo
executeToolMain, failIfParametersAreNotInTheirValidValueRanges, generatePom, generatePoms, initDefaults, writeProperties
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, 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 azip
file.--output <path>
-
-
Constructor Details
-
GenerateJLinkPomMojo
public GenerateJLinkPomMojo()
-
-
Method Details
-
getPackagingTool
public java.lang.String getPackagingTool()- Specified by:
getPackagingTool
in classAbstractGenerateJPacktoolPomMojo
-
initTemplates
protected void initTemplates() throws org.apache.maven.plugin.MojoFailureException- Overrides:
initTemplates
in classAbstractGenerateJPacktoolPomMojo
- Throws:
org.apache.maven.plugin.MojoFailureException
-
generatePoms
protected void generatePoms(java.io.File mainDir) throws org.apache.maven.plugin.MojoFailureException- Specified by:
generatePoms
in classAbstractGenerateJPacktoolPomMojo
- Throws:
org.apache.maven.plugin.MojoFailureException
-
initJPacktoolModel
protected void initJPacktoolModel() throws org.apache.maven.plugin.MojoFailureException- Overrides:
initJPacktoolModel
in classAbstractGenerateJPacktoolPomMojo
- Throws:
org.apache.maven.plugin.MojoFailureException
-