From dc47da4366fba3ba75030e3635b11a0e8a7cdeaa Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Mon, 5 Dec 2022 16:46:15 +0100 Subject: [PATCH] [MNG-7618] Use goalPrefix instead of artifactId 4to display mojos being executed (#898) --- .../java/org/apache/maven/cli/event/ExecutionEventLogger.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java b/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java index 7f79f0587d..4893d09076 100644 --- a/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java +++ b/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java @@ -419,7 +419,8 @@ public class ExecutionEventLogger extends AbstractExecutionListener { } private void append(MessageBuilder buffer, MojoExecution me) { - buffer.mojo(me.getArtifactId() + ':' + me.getVersion() + ':' + me.getGoal()); + String prefix = me.getMojoDescriptor().getPluginDescriptor().getGoalPrefix(); + buffer.mojo(prefix + ':' + me.getVersion() + ':' + me.getGoal()); if (me.getExecutionId() != null) { buffer.a(' ').strong('(' + me.getExecutionId() + ')'); }