Package org.apache.maven.plugin
Interface MojosExecutionStrategy
- All Known Implementing Classes:
DefaultMojosExecutionStrategy
public interface MojosExecutionStrategy
Interface allows overriding default mojo execution strategy For example it is possible wrap some mojo execution to
decorate default functionality or skip some executions
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(List<MojoExecution> mojos, MavenSession session, MojoExecutionRunner mojoExecutionRunner) Entry point to the execution strategy
-
Method Details
-
execute
void execute(List<MojoExecution> mojos, MavenSession session, MojoExecutionRunner mojoExecutionRunner) throws LifecycleExecutionException Entry point to the execution strategy- Parameters:
mojos
- list of mojos representing a project buildsession
- current sessionmojoExecutionRunner
- mojo execution task which must be invoked by a strategy to actually run it- Throws:
LifecycleExecutionException
-