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, 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
Methods inherited from class org.machanism.machai.bindex.maven.BindexMojo
setBasedir, setConfigFile, setExcludes, setInstructions, setModel, setParams, setProject, setServerId, setSession, setSettingsMethods inherited from class org.machanism.machai.gw.maven.AbstractActMojo
applyActPrompt, configureAndScan, getPrompter, performAct, process, readText, scanDocuments, 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
-
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.MojoExecutionExceptionExecutes the Bindex registration workflow.- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classBindexMojo- Throws:
org.apache.maven.plugin.MojoExecutionException- if the registration workflow cannot be executed
-