Class RegisterPerModuleMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
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, prompterFields inherited from class org.machanism.machai.gw.maven.AbstractGWMojo
basedir, classFunctionTools, configFile, excludes, instructions, model, params, path, project, serverId, SERVERID_PROP_NAME, session, settingsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the per-module Bindex registration workflow.Methods inherited from class org.machanism.machai.bindex.maven.BindexPerModuleMojo
setBasedir, setConfigFile, setExcludes, setInstructions, setModel, setParams, setProject, setServerId, setSession, setSettingsMethods inherited from class org.machanism.machai.gw.maven.AbstractActPerModuleMojo
performAct, scanDocumentsMethods inherited from class org.machanism.machai.gw.maven.AbstractActMojo
applyActPrompt, configureAndScan, getPrompter, process, readText, setPrompter, updateMavenProjectLayoutMethods inherited from class org.machanism.machai.gw.maven.AbstractGWMojo
applyExcludes, getConfiguration, scanDocuments, setPathMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
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.MojoExecutionExceptionExecutes 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:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classBindexPerModuleMojo- Throws:
org.apache.maven.plugin.MojoExecutionException- if the registration workflow cannot be executed successfully
-