Package org.machanism.machai.gw.maven


package org.machanism.machai.gw.maven
Maven plugin goals (Mojos) for running MachAI Ghostwriter (GWMojo) guided document processing.

The goals in this package provide Maven integrations around the Ghostwriter document-processing workflow. They scan documentation trees (commonly src/site) for embedded @guidance: blocks and apply guided transformations using the GWMojo processors.

Goals

  • GWMojo (gw:gw) - Aggregator goal that can run without a pom.xml. Processes modules in reverse order (sub-modules first, then parent modules), similar to the Ghostwriter CLI.
  • GWPerModuleMojo (gw:gw-per-module) - Processes modules using standard Maven reactor dependency ordering.
  • ActMojo (gw:act) - Interactive goal for running a predefined action prompt over scanned documents.
  • ActPerModuleMojo (gw:act-per-module) - Reactor-friendly variant of gw:act intended to run in the execution-root project context.
  • CleanMojo (gw:clean) - Deletes temporary artifacts created by GWMojo processing (typically bound to Maven's clean lifecycle).

Credentials

Provider credentials can optionally be sourced from ~/.m2/settings.xml by providing -Dgenai.serverId=<serverId>. When set, the plugin reads the matching <server> entry and forwards credentials and/or additional configuration fields to the workflow.

Usage examples

 mvn gw:gw
 
 mvn gw:gw-per-module -Dgw.scanDir=src\\site
 
  • Classes
    Class
    Description
    Base class for GWMojo Maven plugin goals.
    Maven goal gw:act that runs an interactive, predefined "action" over a documentation tree.
    Maven goal gw:act-per-module that runs an action against the execution-root project using Maven's standard reactor build context.
    Maven goal that deletes temporary artifacts created by the MachAI generative-workflow (GWMojo) document processing.
    Maven goal gw:gw that runs Ghostwriter guided file processing for a project.
    Maven goal that processes documents across a multi-module (reactor) build.