public interface PluginManagerListener
PluginManagerInterceptor,
before and after a mojo is executed.| Modifier and Type | Method and Description |
|---|---|
void |
onReportGenerated(org.apache.maven.reporting.MavenReport report,
org.apache.maven.plugin.MojoExecution mojoExecution,
org.codehaus.plexus.configuration.PlexusConfiguration mergedConfig,
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator eval)
Called after a successful execution of
MavenReport.generate(Sink, Locale). |
void |
postExecute(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.MojoExecution exec,
org.apache.maven.plugin.Mojo mojo,
org.codehaus.plexus.configuration.PlexusConfiguration mergedConfig,
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator eval,
Exception exception)
Called after the mojo has finished executing.
|
void |
preExecute(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.MojoExecution exec,
org.apache.maven.plugin.Mojo mojo,
org.codehaus.plexus.configuration.PlexusConfiguration mergedConfig,
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator eval)
Called right before
Mojo.execute() is invoked. |
void preExecute(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.MojoExecution exec,
org.apache.maven.plugin.Mojo mojo,
org.codehaus.plexus.configuration.PlexusConfiguration mergedConfig,
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator eval)
throws IOException,
InterruptedException
Mojo.execute() is invoked.mojo - The mojo object to be invoked. All its configuration values have been populated.IOExceptionInterruptedExceptionvoid postExecute(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.MojoExecution exec,
org.apache.maven.plugin.Mojo mojo,
org.codehaus.plexus.configuration.PlexusConfiguration mergedConfig,
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator eval,
Exception exception)
throws IOException,
InterruptedException
project - Same object as passed to preExecute(org.apache.maven.project.MavenProject, org.apache.maven.plugin.MojoExecution, org.apache.maven.plugin.Mojo, org.codehaus.plexus.configuration.PlexusConfiguration, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator).exec - Same object as passed to preExecute(org.apache.maven.project.MavenProject, org.apache.maven.plugin.MojoExecution, org.apache.maven.plugin.Mojo, org.codehaus.plexus.configuration.PlexusConfiguration, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator).mojo - The mojo object that executed.mergedConfig - Same object as passed to preExecute(org.apache.maven.project.MavenProject, org.apache.maven.plugin.MojoExecution, org.apache.maven.plugin.Mojo, org.codehaus.plexus.configuration.PlexusConfiguration, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator).eval - Same object as passed to preExecute(org.apache.maven.project.MavenProject, org.apache.maven.plugin.MojoExecution, org.apache.maven.plugin.Mojo, org.codehaus.plexus.configuration.PlexusConfiguration, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator).exception - If mojo execution failed with MojoFailureException or
MojoExecutionException, this method is still invoked
with those error objects.
If mojo executed successfully, this parameter is null.IOExceptionInterruptedExceptionvoid onReportGenerated(org.apache.maven.reporting.MavenReport report,
org.apache.maven.plugin.MojoExecution mojoExecution,
org.codehaus.plexus.configuration.PlexusConfiguration mergedConfig,
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator eval)
throws IOException,
InterruptedException
MavenReport.generate(Sink, Locale).report - The MavenReport object that just successfully completed.IOExceptionInterruptedExceptionCopyright © 2004-2017. All Rights Reserved.