o update api, i need the project and local repository for now.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@769846 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-04-29 17:33:05 +00:00
parent 440b268447
commit 3412a028c4
1 changed files with 16 additions and 1 deletions

View File

@ -50,7 +50,22 @@ public interface LifecycleExecutor
List<MojoDescriptor> calculateLifecyclePlan( String lifecyclePhase, MavenSession session )
throws LifecycleExecutionException;
Set<Plugin> lifecyclePlugins( String packaging );
// For a given project packaging find all the plugins that are bound to any registered
// lifecycles. The project builder needs to now what default plugin information needs to be
// merged into POM being built. Once the POM builder has this plugin information, versions can be assigned
// by the POM builder because they will have to be defined in plugin management. Once this is done then it
// can be passed back so that the default configuraiton information can be populated.
//
// We need to know the specific version so that we can lookup the right version of the plugin descriptor
// which tells us what the default configuration is.
//
Set<Plugin> getPluginsBoundByDefaultToLifecycles( String packaging );
// Given a set of {@link org.apache.maven.Plugin} objects where the GAV is set we can lookup the plugin
// descriptor and populate the default configuration.
//
Set<Plugin> populateDefaultConfigurationForPlugins( Set<Plugin> plugins, MavenProject project, ArtifactRepository localRepository )
throws LifecycleExecutionException;
void execute( MavenSession session )
throws LifecycleExecutionException, MojoFailureException, MojoExecutionException;