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();