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:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.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
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateJlinkArgs(Collection<String> pathsOfModules, Collection<String> modulesToAdd) voidexecute()protected StringOverload this to produce a zip with another classifier, for example a jlink-zip.protected booleanMethods inherited from class org.apache.maven.plugins.jlink.AbstractJLinkMojo
convertSeparatedModulePathToPlatformSeparatedModulePath, getArchiveFile, getCommaSeparatedList, getJlinkExecutor, getPlatformDependSeparateList, getProject, getSession, getToolchain, hasClassifierMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
JLinkMojo
public JLinkMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
hasClassifier
protected boolean hasClassifier()- Returns:
- true in case where the classifier is not
nulland contains something else than white spaces.
-
createJlinkArgs
protected List<String> createJlinkArgs(Collection<String> pathsOfModules, Collection<String> modulesToAdd) -
getClassifier
Overload this to produce a zip with another classifier, for example a jlink-zip.- Specified by:
getClassifierin classAbstractJLinkMojo- Returns:
- get the classifier.
-