Class AbstractActPerModuleMojo

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

public abstract class AbstractActPerModuleMojo extends AbstractActMojo
Base Maven mojo for acts that execute once for every eligible module in a Maven reactor.

This implementation coordinates reactor-aware execution while delegating common act configuration and processing to AbstractActMojo. It processes the execution-root project, unless recursive execution has been explicitly enabled, and configures its processor to scan only the current module. Maven project metadata is supplied to detected Maven layouts so that downstream processing uses the reactor model associated with the module.

  • Constructor Details

    • AbstractActPerModuleMojo

      public AbstractActPerModuleMojo()
  • Method Details

    • performAct

      public void performAct(String actPrompt) throws org.apache.maven.plugin.MojoExecutionException
      Executes the act processor for the current reactor module when this module is eligible for processing.
      Overrides:
      performAct in class AbstractActMojo
      Parameters:
      actPrompt - prompt supplied directly for the act, or null to load the configured prompt
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if configuration, prompting, or processing fails
    • scanDocuments

      protected void scanDocuments(ActProcessor actProcessor) throws IOException
      Forces the inherited processor to operate on the current module rather than recursively traversing the reactor.
      Overrides:
      scanDocuments in class AbstractActMojo
      Parameters:
      actProcessor - processor being configured
      Throws:
      IOException - if scanning the module fails