Class AbstractModuleMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
codes.rafael.modulemaker.AbstractModuleMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
ModuleFileMojo, ModuleInjectMojo
public abstract class AbstractModuleMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe Java version in which themodule-info.classfile should be compiled.protected booleanDetermines if themodule-info.classis added as a class file of a multi-release jar file.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
javaVersion
@Parameter(name="java-version", defaultValue="9") protected int javaVersionThe Java version in which themodule-info.classfile should be compiled. -
multirelease
@Parameter(required=true, defaultValue="false") protected boolean multireleaseDetermines if themodule-info.classis added as a class file of a multi-release jar file. To function correctly, using this option requires a manifest declaringMulti-Release: true.
-
-
Constructor Details
-
AbstractModuleMojo
public AbstractModuleMojo()
-
-
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
-
doExecute
protected abstract void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
filename
-
makeModuleInfo
protected byte[] makeModuleInfo() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-