You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2021/11/06 17:21:38 UTC
[maven] 01/02: Make sure forked mojo executions have a correct
phase set
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch MNG-7129
in repository https://gitbox.apache.org/repos/asf/maven.git
commit 326d710b188782d1f8e4a133cf13865404857923
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Wed Nov 3 13:50:55 2021 +0100
Make sure forked mojo executions have a correct phase set
---
.../lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java
index ef60c4e..9992cf3 100644
--- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java
+++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java
@@ -554,6 +554,8 @@ public class DefaultLifecycleExecutionPlanCalculator
MojoExecution forkedExecution = new MojoExecution( forkedMojoDescriptor, forkedGoal );
+ forkedExecution.setLifecyclePhase( mojoExecution.getLifecyclePhase() );
+
mojoExecutionConfigurator( forkedExecution ).configure( project, forkedExecution, true );
finalizeMojoConfiguration( forkedExecution );