You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2026/10/22 13:04:33 UTC

(maven) branch master updated: fix: align 'POM(s)' to 'POMs' in StrategyOrchestrator dry-run output (#13632)

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

gnodet 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 1d9ad455ab fix: align 'POM(s)' to 'POMs' in StrategyOrchestrator dry-run output (#13632)
1d9ad455ab is described below

commit 1d9ad455aba7d68284890a156a8294cc9e91c847
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Thu Oct 22 15:04:26 2026 +0200

    fix: align 'POM(s)' to 'POMs' in StrategyOrchestrator dry-run output (#13632)
    
    The dry-run branch of logStrategyResult() was still using 'POM(s)'
    while the rest of the file (and logSummary() fixed in a separate
    commit) uses 'POMs'. Align the production code and the matching
    test assertion.
    
    Raised by the review on the maven-4.0.x backport PR #13569.
---
 .../apache/maven/cling/invoker/mvnup/goals/StrategyOrchestrator.java    | 2 +-
 .../maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestrator.java b/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestrator.java
index 9e477977ec..24a464f83e 100644
--- a/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestrator.java
+++ b/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestrator.java
@@ -160,7 +160,7 @@ private void logStrategyResult(UpgradeContext context, UpgradeStrategy strategy,
             context.indent();
             context.info("Processed: " + result.processedPoms().size() + " POMs");
             if (context.isDryRun()) {
-                context.action(result.modifiedPoms().size() + " POM(s) would be modified");
+                context.action(result.modifiedPoms().size() + " POMs would be modified");
             } else {
                 context.success("Modified: " + result.modifiedPoms().size() + " POMs");
             }
diff --git a/impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java b/impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java
index d76190bda7..dc7be44502 100644
--- a/impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java
+++ b/impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java
@@ -234,7 +234,7 @@ void shouldDescribeModificationsAsPlannedInDryRunMode() throws Exception {
 
             orchestrator.executeStrategies(context, pomMap);
 
-            verify(context).action("1 POM(s) would be modified");
+            verify(context).action("1 POMs would be modified");
             verify(context).action("Total POMs would be modified: 1");
             verify(context, Mockito.never()).success("Modified: 1 POMs");
         }