From b4bdce07b12b48b3cf4d26fe28faaec18b5e14ce Mon Sep 17 00:00:00 2001 From: "David M. Lloyd" Date: Fri, 10 Nov 2023 08:23:57 -0600 Subject: [PATCH] [SUREFIRE-2210] - Restore ordering of additional class path elements --- .../org/apache/maven/plugin/surefire/AbstractSurefireMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java index 7cbe8bbb2b..7c337818ad 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java @@ -2569,7 +2569,7 @@ private TestClassPath generateTestClasspath() throws MojoFailureException { Map dependencyConflictIdsProjectArtifacts = classpathArtifacts.stream() .collect(Collectors.toMap(Artifact::getDependencyConflictId, Function.identity())); - Set additionalClasspathElements = new HashSet<>(); + Set additionalClasspathElements = new LinkedHashSet<>(); if (getAdditionalClasspathElements() != null) { Arrays.stream(getAdditionalClasspathElements()).forEach(additionalClasspathElements::add); }