You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2009/04/29 19:33:05 UTC
svn commit: r769846 -
/maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutor.java
Author: jvanzyl
Date: Wed Apr 29 17:33:05 2009
New Revision: 769846
URL: http://svn.apache.org/viewvc?rev=769846&view=rev
Log:
o update api, i need the project and local repository for now.
Modified:
maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutor.java
Modified: maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutor.java
URL: http://svn.apache.org/viewvc/maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutor.java?rev=769846&r1=769845&r2=769846&view=diff
==============================================================================
--- maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutor.java (original)
+++ maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutor.java Wed Apr 29 17:33:05 2009
@@ -50,7 +50,22 @@
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;