From 4f8794a14115c584e37f5c7fd9209e65679696d3 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Tue, 2 Apr 2024 10:09:05 -0300 Subject: [PATCH] Avoid setting SortedProperties twice --- src/main/java/io/fabric8/maven/Maven.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/io/fabric8/maven/Maven.java b/src/main/java/io/fabric8/maven/Maven.java index e5139d6..534f4a4 100644 --- a/src/main/java/io/fabric8/maven/Maven.java +++ b/src/main/java/io/fabric8/maven/Maven.java @@ -64,10 +64,6 @@ public static Model readModel(Path pom) { try (BufferedReader br = Files.newBufferedReader(pom)) { Model model = readModel(br); model.setPomFile(pom.toFile()); - // https://github.com/fabric8-launcher/maven-model-helper/issues/43 - SortedProperties sortedProps = new SortedProperties(); - sortedProps.putAll(model.getProperties()); - model.setProperties(sortedProps); return model; } catch (IOException io) { throw new UncheckedIOException("Error while reading pom.xml", io);