You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2026/08/01 21:26:29 UTC

(maven) branch master updated: fix guice label in graph

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

hboutemy 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 298902c30c fix guice label in graph
298902c30c is described below

commit 298902c30cb26b47f408787f3525b80046811e83
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sat Aug 1 22:25:44 2026 +0100

    fix guice label in graph
---
 src/graph/ReactorGraph.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/graph/ReactorGraph.java b/src/graph/ReactorGraph.java
index 1934a491fd..4dc29fe734 100755
--- a/src/graph/ReactorGraph.java
+++ b/src/graph/ReactorGraph.java
@@ -89,6 +89,11 @@ public static void main(String[] args) {
                 String nodeName = oldNodeName;
                 if (originalNode.get("label") instanceof Label l) {
                     nodeName = l.value();
+                    // fix "guice\njar:classes" label caused by classifier
+                    int i = nodeName.indexOf('\\');
+                    if (i > 0) {
+                        nodeName = nodeName.substring(0, i);
+                    }
                 }
                 MutableNode newNode = mutNode(nodeName);
                 nodeMap.put(nodeName, newNode);