Class RegisterPerModuleMojo

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

@Mojo(name="register-per-module", aggregator=false, threadSafe=true, requiresProject=true, requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class RegisterPerModuleMojo extends BindexPerModuleMojo
Maven goal implementation that registers Bindex metadata for an individual project in a multi-module Maven reactor.

This goal uses the per-module execution infrastructure supplied by BindexPerModuleMojo. Maven invokes it in the context of each module, allowing the module's generated Bindex metadata and inherited Maven settings to be made available to the registration workflow. The actual registration is delegated to the bindex/register Machai workflow.

Registry connection details, model selection, paths, and other workflow options are configured through the parameters inherited from BindexPerModuleMojo.

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 per-module Bindex registration goal.
  • Method Summary

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

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

    performAct, scanDocuments

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

    applyActPrompt, configureAndScan, getPrompter, process, readText, 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

    • RegisterPerModuleMojo

      public RegisterPerModuleMojo()
      Creates the per-module Bindex registration goal.

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

  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Executes the per-module Bindex registration workflow.

      The workflow receives the Maven project, session, reactor, and configuration values prepared by the inherited per-module mojo. It then registers the Bindex metadata associated with the current module.

      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class BindexPerModuleMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if the registration workflow cannot be executed successfully