Class RegisterMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.machanism.machai.gw.maven.AbstractGWMojo
org.machanism.machai.gw.maven.AbstractActMojo
org.machanism.machai.bindex.maven.BindexMojo
org.machanism.machai.bindex.maven.RegisterMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="register", aggregator=true, threadSafe=true, requiresProject=false, requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class RegisterMojo extends BindexMojo
Maven goal that registers the project's generated Bindex metadata with the configured Bindex registry.

This aggregator goal does not require a Maven project and resolves compile and runtime dependencies before delegating registration to the bindex/register Machai workflow. Configuration inherited from BindexMojo supplies the registry connection and workflow settings.

Since:
1.4.1
  • Field Summary

    Fields inherited from class org.machanism.machai.gw.maven.AbstractActMojo

    act, prompter

    Fields inherited from class org.machanism.machai.gw.maven.AbstractGWMojo

    basedir, classFunctionTools, configFile, excludes, instructions, model, params, path, project, serverId, SERVERID_PROP_NAME, session, settings

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the reactor-wide Bindex registration goal.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Executes the Bindex registration workflow.

    Methods inherited from class org.machanism.machai.bindex.maven.BindexMojo

    setBasedir, setConfigFile, setExcludes, setInstructions, setModel, setParams, setProject, setServerId, setSession, setSettings

    Methods inherited from class org.machanism.machai.gw.maven.AbstractActMojo

    applyActPrompt, configureAndScan, getPrompter, performAct, process, readText, scanDocuments, setPrompter, updateMavenProjectLayout

    Methods inherited from class org.machanism.machai.gw.maven.AbstractGWMojo

    applyExcludes, getConfiguration, scanDocuments, setPath

    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

    • RegisterMojo

      public RegisterMojo()
      Creates the reactor-wide Bindex registration goal.

      Maven instantiates this mojo reflectively and injects the inherited workflow configuration before execution.

  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Executes the Bindex registration workflow.
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class BindexMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if the registration workflow cannot be executed