Package org.machanism.machai.maven
Class Register
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.machanism.machai.maven.AbstractBindexMojo
org.machanism.machai.maven.Register
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
Maven Mojo to execute the "register" goal for Bindex.
This goal registers the existing Bindex index and resources for the project folder using the configured AI provider.
Usage Example:
mvn org.machanism.machai:bindex-maven-plugin:register
- Author:
- Viktor Tovstyi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringURL of the registration database for storing project metadata.protected booleanIf true, performs update during register operation.Fields inherited from class org.machanism.machai.maven.AbstractBindexMojo
basedir, chatModel, projectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the register goal, updating and scanning Bindex resources.Methods inherited from class org.machanism.machai.maven.AbstractBindexMojo
createBindex, isBindexedMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
update
@Parameter(defaultValue="true") protected boolean updateIf true, performs update during register operation. -
registerUrl
URL of the registration database for storing project metadata.
-
-
Constructor Details
-
Register
public Register()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionExecutes the register goal, updating and scanning Bindex resources.- Throws:
org.apache.maven.plugin.MojoExecutionException- if any errors occur during registrationorg.apache.maven.plugin.MojoFailureException- if the goal fails for a known project issue
-