Class ActPerModuleMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="act-per-module", aggregator=false, threadSafe=true, requiresProject=true, requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class ActPerModuleMojo extends ActMojo
Maven goal gw:act-per-module that runs an action against the execution-root project using Maven's standard reactor build context.

Unlike ActMojo (which is an aggregator and can discover/scan modules itself), this goal executes as part of a standard reactor build. It typically targets the execution-root project only and delegates the scan to ActProcessor.

Parameters

This goal does not introduce additional parameters beyond those supported by ActMojo and AbstractGWMojo.

Inherited parameters (from ActMojo)

-Dgw.act / <act>
Action text/prompt to apply. If omitted, the goal reads it interactively.
-Dgw.acts / <acts>
Optional directory containing predefined action definitions.

Inherited parameters (from AbstractGWMojo)

-Dgw.model / <model>
Provider/model identifier forwarded to the workflow. Example: openai:gpt-4o-mini.
-Dgw.scanDir / <scanDir>
Optional scan root override. When omitted, defaults to the execution-root directory.
-Dgw.excludes / <excludes>
Exclude patterns/paths to skip while scanning documentation sources.
-Dgenai.serverId / <serverId>
settings.xml <server> id used to read GenAI credentials.
-DlogInputs / <logInputs>
Whether to log the list of input files passed to the workflow.

Usage examples

 mvn gw:act-per-module
 
 mvn gw:act-per-module -Dgw.act="Rewrite headings" -Dgw.scanDir=src\\site
 
  • Constructor Details

    • ActPerModuleMojo

      public ActPerModuleMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Description copied from class: ActMojo
      Executes the interactive action and scans documents using the configured action prompt.
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class ActMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if an I/O failure occurs while processing files
    • scanDocuments

      protected void scanDocuments(ActProcessor actProcessor) throws IOException
      Overrides:
      scanDocuments in class ActMojo
      Throws:
      IOException