You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2022/12/05 15:46:24 UTC

[maven] branch master updated: [MNG-7618] Use goalPrefix instead of artifactId 4to display mojos being executed (#898)

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/master by this push:
     new dc47da436 [MNG-7618] Use goalPrefix instead of artifactId 4to display mojos being executed (#898)
dc47da436 is described below

commit dc47da4366fba3ba75030e3635b11a0e8a7cdeaa
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Mon Dec 5 16:46:15 2022 +0100

    [MNG-7618] Use goalPrefix instead of artifactId 4to display mojos being executed (#898)
---
 .../src/main/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 7f79f0587..4893d0907 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() + ')');
         }