Package org.machanism.machai.bindex.maven


package org.machanism.machai.bindex.maven
Maven plugin goals for generating and registering Bindex metadata through Machai workflows.

BindexMojo provides the reactor-wide bindex goal. It is an aggregator goal and may run without a Maven project. BindexPerModuleMojo provides the bindex-per-module goal, which requires a project and executes once for each module to which it is bound. RegisterMojo and RegisterPerModuleMojo provide the corresponding reactor-wide and per-module registration goals. Generation delegates to the bindex Machai Act, while registration delegates to the bindex/register Act.

Available Maven goals
GoalExecution scopePurpose
bindexReactor Generates Bindex metadata once for the reactor.
bindex-per-moduleModule Generates Bindex metadata for each bound Maven module.
registerReactor Registers generated Bindex metadata once for the reactor.
register-per-moduleModule Registers generated Bindex metadata for each bound Maven module.

All goals share workflow configuration for Maven settings and server credentials, an optional configuration file, model selection, supplemental instructions, exclusion patterns, and arbitrary Act parameters. Invoke the reactor-wide generation goal with mvn bindex:bindex, the per-module generation goal with mvn bindex:bindex-per-module, the reactor-wide registration goal with mvn bindex:register, or the per-module registration goal with mvn bindex:register-per-module.

Goals may also be bound to Maven lifecycle phases. For example, bind the per-module generation goal when every module must produce its own metadata:

 <plugin>
   <groupId>org.machanism.machai</groupId>
   <artifactId>bindex-maven-plugin</artifactId>
   <executions>
     <execution>
       <goals><goal>bindex-per-module</goal></goals>
     </execution>
   </executions>
 </plugin>
 
  • Classes
    Class
    Description
    Aggregated Maven goal that generates Bindex metadata for the current Maven reactor.
    Maven goal that generates Bindex metadata in the context of each module in a multi-module reactor.
    Maven goal that registers the project's generated Bindex metadata with the configured Bindex registry.
    Maven goal implementation that registers Bindex metadata for an individual project in a multi-module Maven reactor.