Class GenerateApiMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
dev.rvr.apigenerator.GenerateApiMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="generate-api-dist", defaultPhase=PROCESS_CLASSES, requiresDependencyResolution=TEST) public class GenerateApiMojo extends org.apache.maven.plugin.AbstractMojo
The Mojo class for the generate-api-dist goal. This goal will create a version of your jar with all method bodies removed, useful when you want others to be able to use your project's api, but not have the executable (source) files.
  • Field Summary

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The main method of this mojo

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

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

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

    • GenerateApiMojo

      public GenerateApiMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoFailureException
      The main method of this mojo
      Throws:
      org.apache.maven.plugin.MojoFailureException - when an exception occurred during the run