From 5289e5211cc86d9b54531c0b1cfbf374a7abddb8 Mon Sep 17 00:00:00 2001 From: monniechuang Date: Thu, 16 May 2024 22:35:12 -0700 Subject: [PATCH] [MNG-7883] - Also print groupId and version in the Reactor Build Order --- .../apache/maven/cli/event/ExecutionEventLogger.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 a8085253a895..db38289fc8e0 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 @@ -129,11 +129,11 @@ public void sessionStarted(ExecutionEvent event) { final List projects = event.getSession().getProjects(); for (MavenProject project : projects) { - int len = lineLength - - project.getName().length() - - project.getPackaging().length() - - 2; - logger.info("{}{}[{}]", project.getName(), chars(' ', (len > 0) ? len : 1), project.getPackaging()); + String projectInfo = String.format( + "%s:%s:%s [%s]", + project.getGroupId(), project.getArtifactId(), project.getVersion(), project.getPackaging()); + int len = lineLength - projectInfo.length(); + logger.info("{}{}", projectInfo, chars(' ', (len > 0) ? len : 1)); } final List allProjects = event.getSession().getAllProjects();