File tree 1 file changed +7
-1
lines changed
maven-core/src/main/java/org/apache/maven/plugin/internal
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 23
23
24
24
import java .nio .file .Path ;
25
25
import java .nio .file .Paths ;
26
+ import java .util .ArrayList ;
26
27
import java .util .Arrays ;
27
28
import java .util .Collection ;
28
29
import java .util .Collections ;
@@ -222,7 +223,12 @@ private void reportSessionCollectedValidationIssues(MavenSession mavenSession) {
222
223
logger .warn ("" );
223
224
logger .warn ("Plugin {} validation issues were detected in following plugin(s)" , issueLocalitiesToReport );
224
225
logger .warn ("" );
225
- for (Map .Entry <String , PluginValidationIssues > entry : issuesMap .entrySet ()) {
226
+
227
+ // Sorting the plugins
228
+ List <Map .Entry <String , PluginValidationIssues >> sortedEntries = new ArrayList <>(issuesMap .entrySet ());
229
+ sortedEntries .sort (Map .Entry .comparingByKey (String .CASE_INSENSITIVE_ORDER ));
230
+
231
+ for (Map .Entry <String , PluginValidationIssues > entry : sortedEntries ) {
226
232
PluginValidationIssues issues = entry .getValue ();
227
233
if (!hasAnythingToReport (issues , issueLocalitiesToReport )) {
228
234
continue ;
You can’t perform that action at this time.
0 commit comments