From 4140d03ef1ec23443e70e570001fa2fcb42afbb9 Mon Sep 17 00:00:00 2001 From: vlaw Date: Thu, 12 Oct 2023 18:47:51 +0800 Subject: [PATCH] fix: show execution lifecycle phase Fix #190 --- .../mojo/buildplan/display/MojoExecutionDisplay.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/org/codehaus/mojo/buildplan/display/MojoExecutionDisplay.java b/src/main/java/org/codehaus/mojo/buildplan/display/MojoExecutionDisplay.java index e55492a..7e79888 100644 --- a/src/main/java/org/codehaus/mojo/buildplan/display/MojoExecutionDisplay.java +++ b/src/main/java/org/codehaus/mojo/buildplan/display/MojoExecutionDisplay.java @@ -20,7 +20,6 @@ import org.apache.maven.lifecycle.DefaultLifecycles; import org.apache.maven.lifecycle.Lifecycle; import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.descriptor.MojoDescriptor; public class MojoExecutionDisplay { @@ -31,10 +30,6 @@ public MojoExecutionDisplay(MojoExecution execution) { } public String getPhase() { - MojoDescriptor mojoDescriptor = execution.getMojoDescriptor(); - if (mojoDescriptor != null && mojoDescriptor.getPhase() != null) { - return mojoDescriptor.getPhase(); - } return defaultString(execution.getLifecyclePhase()); }