mirror of https://github.com/apache/maven.git
[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:
parent
ea7d1088e9
commit
76b76af968
|
@ -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] );
|
||||
|
|
Loading…
Reference in New Issue