File tree Expand file tree Collapse file tree
maven-core/src/main/java/org/apache/maven/plugin/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424import java .nio .file .Path ;
2525import java .nio .file .Paths ;
26+ import java .util .ArrayList ;
2627import java .util .Arrays ;
2728import java .util .Collection ;
2829import java .util .Collections ;
@@ -222,7 +223,12 @@ private void reportSessionCollectedValidationIssues(MavenSession mavenSession) {
222223 logger .warn ("" );
223224 logger .warn ("Plugin {} validation issues were detected in following plugin(s)" , issueLocalitiesToReport );
224225 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 ) {
226232 PluginValidationIssues issues = entry .getValue ();
227233 if (!hasAnythingToReport (issues , issueLocalitiesToReport )) {
228234 continue ;
You can’t perform that action at this time.
0 commit comments