mirror of https://github.com/apache/maven.git
o change signature to have the session first
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@760723 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a8d2eee331
commit
1ce1debe96
|
@ -194,7 +194,7 @@ public class DefaultLifecycleExecutor
|
|||
|
||||
try
|
||||
{
|
||||
pluginManager.executeMojo( project, mojoExecution, session );
|
||||
pluginManager.executeMojo( session, mojoExecution );
|
||||
}
|
||||
catch ( MojoFailureException e )
|
||||
{
|
||||
|
|
|
@ -353,7 +353,7 @@ public class DefaultPluginManager
|
|||
|
||||
// We should assume that We've already loaded the plugin in question.
|
||||
|
||||
public void executeMojo( MojoExecution mojoExecution, MavenSession session )
|
||||
public void executeMojo( MavenSession session, MojoExecution mojoExecution )
|
||||
throws MojoFailureException, PluginExecutionException, PluginConfigurationException
|
||||
{
|
||||
MavenProject project = session.getCurrentProject();
|
||||
|
|
|
@ -39,6 +39,6 @@ public interface PluginManager
|
|||
MojoDescriptor getMojoDescriptor( Plugin plugin, String goal, MavenSession session )
|
||||
throws PluginLoaderException;
|
||||
|
||||
void executeMojo( MojoExecution execution, MavenSession session )
|
||||
void executeMojo( MavenSession session, MojoExecution execution )
|
||||
throws MojoFailureException, PluginExecutionException, PluginConfigurationException;
|
||||
}
|
|
@ -87,7 +87,7 @@ public class PluginManagerTest
|
|||
MojoDescriptor mojoDescriptor = pluginManager.getMojoDescriptor( plugin, goal, session );
|
||||
assertPluginDescriptor( mojoDescriptor, "org.apache.maven.plugins", "maven-remote-resources-plugin", "1.1" );
|
||||
MojoExecution mojoExecution = new MojoExecution( mojoDescriptor );
|
||||
pluginManager.executeMojo( mojoExecution, session );
|
||||
pluginManager.executeMojo( session, mojoExecution );
|
||||
}
|
||||
|
||||
public void testSurefirePlugin()
|
||||
|
@ -104,7 +104,7 @@ public class PluginManagerTest
|
|||
MojoDescriptor mojoDescriptor = pluginManager.getMojoDescriptor( plugin, goal, session );
|
||||
assertPluginDescriptor( mojoDescriptor, "org.apache.maven.plugins", "maven-surefire-plugin", "2.4.2" );
|
||||
MojoExecution mojoExecution = new MojoExecution( mojoDescriptor );
|
||||
pluginManager.executeMojo( mojoExecution, session );
|
||||
pluginManager.executeMojo( session, mojoExecution );
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue