You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2022/12/26 19:01:41 UTC
[maven] branch maven-3.9.x updated: [MNG-7618][MNG-7624] Backport to Maven 3.9.x (#937)
This is an automated email from the ASF dual-hosted git repository.
cstamas pushed a commit to branch maven-3.9.x
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/maven-3.9.x by this push:
new a23ff0f9a [MNG-7618][MNG-7624] Backport to Maven 3.9.x (#937)
a23ff0f9a is described below
commit a23ff0f9a2ab88864b9744172b9b7b6232a82b23
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Mon Dec 26 20:01:32 2022 +0100
[MNG-7618][MNG-7624] Backport to Maven 3.9.x (#937)
These changes are making IT suite to fail with maven-3.9.x.
OTOH, the change is nearly trivial, while value is high, so let's
backport them.
---
https://issues.apache.org/jira/browse/MNG-7618
https://issues.apache.org/jira/browse/MNG-7624
---
.../main/java/org/apache/maven/cli/event/ExecutionEventLogger.java | 6 +++++-
1 file changed, 5 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 9ac862d04..487abe8a7 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
@@ -380,7 +380,11 @@ 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();
+ if (StringUtils.isEmpty(prefix)) {
+ prefix = me.getGroupId() + ":" + me.getArtifactId();
+ }
+ buffer.mojo(prefix + ':' + me.getVersion() + ':' + me.getGoal());
if (me.getExecutionId() != null) {
buffer.a(' ').strong('(' + me.getExecutionId() + ')');
}