hudson.maven.agent
Interface PluginManagerListener


public interface PluginManagerListener

Receives notification from PluginManagerInterceptor, before and after a mojo is executed.

Author:
Kohsuke Kawaguchi

Method Summary
 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.
 

Method Detail

preExecute

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
Called right before Mojo.execute() is invoked.

Parameters:
mojo - The mojo object to be invoked. All its configuration values have been populated.
Throws:
IOException
InterruptedException

postExecute

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)
                 throws IOException,
                        InterruptedException
Called after the mojo has finished executing.

Parameters:
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.
Throws:
IOException
InterruptedException

onReportGenerated

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)
                       throws IOException,
                              InterruptedException
Called after a successful execution of MavenReport.generate(Sink, Locale).

Parameters:
report - The MavenReport object that just successfully completed.
Throws:
IOException
InterruptedException


Copyright © 2004-2012 Hudson. All Rights Reserved.