[MNG-3401] Plugin parameters must be specified outside an execution block when they are invoked from the command line

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@783520 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-06-10 21:08:44 +00:00
parent ea7d1088e9
commit 76b76af968
1 changed files with 1 additions and 2 deletions

View File

@ -304,7 +304,7 @@ public class DefaultLifecycleExecutor
MojoDescriptor mojoDescriptor = getMojoDescriptor( goal, session );
MojoExecution mojoExecution = new MojoExecution( mojoDescriptor, "default-" + mojoDescriptor.getGoal() );
MojoExecution mojoExecution = new MojoExecution( mojoDescriptor, "default-cli" );
populateMojoExecutionConfiguration( project, mojoExecution, true );
@ -839,7 +839,6 @@ public class DefaultLifecycleExecutor
String[] p = StringUtils.split( goal, ":" );
PluginExecution execution = new PluginExecution();
// FIXME: Find a better execution id
execution.setId( "default-" + p[2] );
execution.setPhase( phase );
execution.getGoals().add( p[2] );