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
ConstructorsConstructorDescriptionJLinkMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.apache.maven.toolchain.ToolchainManager toolchainManager, org.apache.maven.shared.filtering.MavenResourcesFiltering mavenResourcesFiltering, org.codehaus.plexus.languages.java.jpms.LocationManager locationManager) -
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.Methods inherited from class org.apache.maven.plugins.jlink.AbstractJLinkMojo
convertSeparatedModulePathToPlatformSeparatedModulePath, getJlinkExecutor, getProject, getSession, getToolchainMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
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
-
createJlinkArgs
protected List<String> createJlinkArgs(Collection<String> pathsOfModules, Collection<String> modulesToAdd) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
getClassifier
Overload this to produce a zip with another classifier, for example a jlink-zip.- Specified by:
getClassifierin classAbstractJLinkMojo- Returns:
- get the classifier
-