Package org.moditect.mavenplugin.image
Class CreateRuntimeImageMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.moditect.mavenplugin.image.CreateRuntimeImageMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="create-runtime-image",
defaultPhase=PACKAGE,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
public class CreateRuntimeImageMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private boolean
private Integer
private boolean
private JarInclusionPolicy
private Launcher
private org.apache.maven.execution.MavenSession
private boolean
private boolean
private File
protected org.apache.maven.project.MavenProject
private boolean
private org.apache.maven.toolchain.ToolchainManager
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
private Path
Returns the directory with the jmod files to be used for creating the image.getToolChainRequirements
(String baseJdk) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project -
toolchainManager
@Component private org.apache.maven.toolchain.ToolchainManager toolchainManager -
mavenSession
@Parameter(defaultValue="${session}", readonly=true) private org.apache.maven.execution.MavenSession mavenSession -
baseJdk
-
modulePath
-
outputDirectory
@Parameter(property="outputDirectory", defaultValue="${project.build.directory}/image") private File outputDirectory -
modules
-
jarInclusionPolicy
-
launcher
-
compression
-
stripDebug
@Parameter(defaultValue="false") private boolean stripDebug -
excludedResources
-
ignoreSigningInformation
@Parameter(property="ignoreSigningInformation", defaultValue="false") private boolean ignoreSigningInformation -
noHeaderFiles
@Parameter(defaultValue="false") private boolean noHeaderFiles -
noManPages
@Parameter(defaultValue="false") private boolean noManPages -
bindServices
@Parameter(defaultValue="false") private boolean bindServices
-
-
Constructor Details
-
CreateRuntimeImageMojo
public CreateRuntimeImageMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getJModsDir
Returns the directory with the jmod files to be used for creating the image. IfbaseJdk
has been given, the jmod files from the JDK identified that way will be used; otherwise the jmod files from the JDK running the current build will be used.- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getToolChainRequirements
private Map<String,String> getToolChainRequirements(String baseJdk) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
getExcludeResourcesPatterns
-