Package org.machanism.machai.maven
Class AbstractBindexMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.machanism.machai.maven.AbstractBindexMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
public abstract class AbstractBindexMojo
extends org.apache.maven.plugin.AbstractMojo
Abstract base Mojo for Bindex Maven plugin operations.
This class provides common functionality for the core plugin goals (create, update, register) and manages interaction with the Bindex AI provider, resource processing, and Maven project context.
Usage example:
AbstractBindexMojo mojo = new Create();
mojo.execute();
- Author:
- Viktor Tovstyi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileThe base directory of the Maven project.protected StringThe chat model identifier used by Bindex AI provider.protected org.apache.maven.project.MavenProjectThe Maven project associated with the current build.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidcreateBindex(boolean update) Creates or updates Bindex index and resources for the project folder.(package private) booleanReturns true if the project packaging type is suitable for Bindex operations.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
project
@Parameter(readonly=true, defaultValue="${project}") protected org.apache.maven.project.MavenProject projectThe Maven project associated with the current build. -
chatModel
The chat model identifier used by Bindex AI provider. -
basedir
The base directory of the Maven project.
-
-
Constructor Details
-
AbstractBindexMojo
public AbstractBindexMojo()Default constructor.
-
-
Method Details
-
createBindex
void createBindex(boolean update) Creates or updates Bindex index and resources for the project folder.- Parameters:
update- true if the update mode should be enabled
-
isBindexed
boolean isBindexed()Returns true if the project packaging type is suitable for Bindex operations.- Returns:
- true if packaging is not "pom"
-