Package ru.akman.maven.plugins.jlink
Class JlinkMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
ru.akman.maven.plugins.BaseToolMojo
ru.akman.maven.plugins.jlink.JlinkMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="jlink",
requiresDependencyResolution=RUNTIME)
public class JlinkMojo
extends BaseToolMojo
The jlink goal lets you create a custom runtime image with
the jlink tool introduced in Java 9. It used to link a set of modules,
along with their transitive dependences.
The main idea is to avoid being tied to project artifacts and allow the user to fully control the process of creating an image. However, it is possible, of course, to customize the process using project artifacts.
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Methods inherited from class ru.akman.maven.plugins.BaseToolMojo
execCmdLine, execCmdLine, getBaseDir, getBuildDir, getCharset, getFileSetManager, getOutputDir, getPluginManager, getProject, getProperties, getSession, getToolchain, getToolchainManager, getToolchains, getToolExecutable, getToolHomeDirectory, getToolJavaVersion, getToolVersion, init
Methods 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.MojoExecutionExceptionExecute goal.- Throws:
org.apache.maven.plugin.MojoExecutionException
- if any errors occurred
-