Package org.apache.maven.plugins.jlink
Class JLinkMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.jlink.AbstractJLinkMojo
-
- org.apache.maven.plugins.jlink.JLinkMojo
-
- All Implemented Interfaces:
ContextEnabled
,Mojo
@Mojo(name="jlink", requiresDependencyResolution=RUNTIME, defaultPhase=PACKAGE) public class JLinkMojo extends AbstractJLinkMojo
The JLink goal is intended to create a Java Run Time Image file based on https://openjdk.java.net/jeps/282, https://openjdk.java.net/jeps/220.- Author:
- Karl Heinz Marbaise khmarbaise@apache.org
-
-
Constructor Summary
Constructors Constructor Description JLinkMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
protected String
getClassifier()
Overload this to produce a zip with another classifier, for example a jlink-zip.protected boolean
hasClassifier()
-
Methods inherited from class org.apache.maven.plugins.jlink.AbstractJLinkMojo
convertSeparatedModulePathToPlatformSeparatedModulePath, getArchiveFile, getCommaSeparatedList, getJlinkExecutor, getPlatformDependSeparateList, getProject, getSession, getToolchain, hasClassifier
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Method Detail
-
execute
public void execute() throws MojoExecutionException, MojoFailureException
-
hasClassifier
protected boolean hasClassifier()
- Returns:
- true in case where the classifier is not
null
and contains something else than white spaces.
-
getClassifier
protected String getClassifier()
Overload this to produce a zip with another classifier, for example a jlink-zip.- Specified by:
getClassifier
in classAbstractJLinkMojo
- Returns:
- get the classifier.
-
-