Class KeygenMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.jcabi.ssl.maven.plugin.KeygenMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public final class KeygenMojo extends org.apache.maven.plugin.AbstractMojo
Generate SSL keystore and configure in JVM.
Since:
0.5
  • Field Summary

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates KeygenMojo.
    KeygenMojo(org.apache.maven.project.MavenProject prj, com.jcabi.ssl.maven.plugin.Keystore str, com.jcabi.ssl.maven.plugin.Cacerts crt)
    Creates KeygenMojo using custom KeystoreFactory.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    setSkip(boolean skp)
    Set skip option.

    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

    • KeygenMojo

      public KeygenMojo()
      Creates KeygenMojo.
    • KeygenMojo

      public KeygenMojo(org.apache.maven.project.MavenProject prj, com.jcabi.ssl.maven.plugin.Keystore str, com.jcabi.ssl.maven.plugin.Cacerts crt)
      Creates KeygenMojo using custom KeystoreFactory.
      Parameters:
      prj - Maven project
      str - Keystore instance
      crt - Cacerts instance
  • Method Details

    • setSkip

      public void setSkip(boolean skp)
      Set skip option.
      Parameters:
      skp - Shall we skip execution?
    • execute

      public void execute() throws org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoFailureException