Package org.machanism.machai.gw.maven
Class AbstractActPerModuleMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.machanism.machai.gw.maven.AbstractGWMojo
org.machanism.machai.gw.maven.AbstractActMojo
org.machanism.machai.gw.maven.AbstractActPerModuleMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
ActPerModuleMojo
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.
-
Field Summary
Fields inherited from class org.machanism.machai.gw.maven.AbstractActMojo
act, prompterFields inherited from class org.machanism.machai.gw.maven.AbstractGWMojo
basedir, classFunctionTools, configFile, excludes, instructions, logger, model, params, path, project, serverId, SERVERID_PROP_NAME, session, settingsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidperformAct(String actPrompt) Executes the act processor for the current reactor module when this module is eligible for processing.protected voidscanDocuments(ActProcessor actProcessor) Forces the inherited processor to operate on the current module rather than recursively traversing the reactor.Methods inherited from class org.machanism.machai.gw.maven.AbstractActMojo
applyActPrompt, configureAndScan, getPrompter, process, readText, setPrompter, updateMavenProjectLayoutMethods inherited from class org.machanism.machai.gw.maven.AbstractGWMojo
getConfiguration, scanDocuments, setBasedir, setConfigFile, setExcludes, setInstructions, setModel, setParams, setPath, setProject, setServerId, setSession, setSettingsMethods 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
-
Constructor Details
-
AbstractActPerModuleMojo
public AbstractActPerModuleMojo()
-
-
Method Details
-
performAct
Executes the act processor for the current reactor module when this module is eligible for processing.- Overrides:
performActin classAbstractActMojo- Parameters:
actPrompt- prompt supplied directly for the act, ornullto load the configured prompt- Throws:
org.apache.maven.plugin.MojoExecutionException- if configuration, prompting, or processing fails
-
scanDocuments
Forces the inherited processor to operate on the current module rather than recursively traversing the reactor.- Overrides:
scanDocumentsin classAbstractActMojo- Parameters:
actProcessor- processor being configured- Throws:
IOException- if scanning the module fails
-