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

    Fields
    Modifier and Type
    Field
    Description
    protected int
    The Java version in which the module-info.class file should be compiled.
    protected boolean
    Determines if the module-info.class is added as a class file of a multi-release jar file.

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
     
    void
     
    protected String
     
    protected byte[]
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • javaVersion

      @Parameter(name="java-version", defaultValue="9") protected int javaVersion
      The Java version in which the module-info.class file should be compiled.
    • multirelease

      @Parameter(required=true, defaultValue="false") protected boolean multirelease
      Determines if the module-info.class is added as a class file of a multi-release jar file. To function correctly, using this option requires a manifest declaring Multi-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.MojoExecutionException
      org.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.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • filename

      protected String filename()
    • makeModuleInfo

      protected byte[] makeModuleInfo() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException