org.apache.maven.lifecycle.internal
Class MojoExecutor

java.lang.Object
  extended by org.apache.maven.lifecycle.internal.MojoExecutor

@Component(role=MojoExecutor.class)
public class MojoExecutor
extends Object

Executes an individual mojo

Since:
3.0
Author:
Jason van Zyl, Benjamin Bentmann, Kristian Rosenvold

NOTE: This class is not part of any public api and can be changed or deleted without prior notice.


Constructor Summary
MojoExecutor()
           
 
Method Summary
 void ensureDependenciesAreResolved(MojoDescriptor mojoDescriptor, MavenSession session, DependencyContext dependencyContext)
           
 void execute(MavenSession session, List<MojoExecution> mojoExecutions, ProjectIndex projectIndex)
           
 void execute(MavenSession session, MojoExecution mojoExecution, ProjectIndex projectIndex, DependencyContext dependencyContext, PhaseRecorder phaseRecorder)
           
 List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution, MavenSession session, ProjectIndex projectIndex)
           
 DependencyContext newDependencyContext(MavenSession session, List<MojoExecution> mojoExecutions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MojoExecutor

public MojoExecutor()
Method Detail

newDependencyContext

public DependencyContext newDependencyContext(MavenSession session,
                                              List<MojoExecution> mojoExecutions)

execute

public void execute(MavenSession session,
                    List<MojoExecution> mojoExecutions,
                    ProjectIndex projectIndex)
             throws LifecycleExecutionException
Throws:
LifecycleExecutionException

execute

public void execute(MavenSession session,
                    MojoExecution mojoExecution,
                    ProjectIndex projectIndex,
                    DependencyContext dependencyContext,
                    PhaseRecorder phaseRecorder)
             throws LifecycleExecutionException
Throws:
LifecycleExecutionException

ensureDependenciesAreResolved

public void ensureDependenciesAreResolved(MojoDescriptor mojoDescriptor,
                                          MavenSession session,
                                          DependencyContext dependencyContext)
                                   throws LifecycleExecutionException
Throws:
LifecycleExecutionException

executeForkedExecutions

public List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution,
                                                  MavenSession session,
                                                  ProjectIndex projectIndex)
                                           throws LifecycleExecutionException
Throws:
LifecycleExecutionException


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.