Class ModuleInfoMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.github.dmlloyd.moduleinfo.ModuleInfoMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="generate",
defaultPhase=PROCESS_CLASSES)
public class ModuleInfoMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate FileThe directory where class files can be read from.private booleanprivate booleanprivate Stringprivate Stringprivate FileThe path to the module-info.yml file.private Stringprivate Stringprivate FileThe directory where the module-info.class file should be installed.private booleanFields 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
-
skip
@Parameter(defaultValue="false", property="module-info.skip") private boolean skip -
outputDirectory
@Parameter(defaultValue="${project.build.outputDirectory}", required=true) private File outputDirectoryThe directory where the module-info.class file should be installed. -
classesDirectory
@Parameter(defaultValue="${project.build.outputDirectory}", required=true) private File classesDirectoryThe directory where class files can be read from. -
moduleInfoYml
@Parameter(defaultValue="${project.build.sourceDirectory}/module-info.yml") private File moduleInfoYmlThe path to the module-info.yml file. -
addPackages
@Parameter(defaultValue="true", property="module-info.add-packages") private boolean addPackages -
addExports
@Parameter(defaultValue="true", property="module-info.add-exports") private boolean addExports -
moduleArtifactId
-
moduleGroupId
-
moduleName
-
moduleVersion
@Parameter(defaultValue="${project.version}", property="module-info.module-version") private String moduleVersion -
addMandatory
@Parameter(defaultValue="true", property="module-info.add-mandatory") private boolean addMandatory -
detectUses
@Parameter(defaultValue="true", property="module-info.detect-uses") private boolean detectUses -
detectProvides
@Parameter(defaultValue="true", property="module-info.detect-provides") private boolean detectProvides
-
-
Constructor Details
-
ModuleInfoMojo
public ModuleInfoMojo()
-
-
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
-