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/06/04 09:16:35 UTC

(maven) branch maven-4.0.x updated: Fix mvnup PLUGIN_UPGRADES inconsistencies for compiler and exec plugins (#12172) (#12225)

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

gnodet pushed a commit to branch maven-4.0.x
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/maven-4.0.x by this push:
     new 3ff51df5f0 Fix mvnup PLUGIN_UPGRADES inconsistencies for compiler and exec plugins (#12172) (#12225)
3ff51df5f0 is described below

commit 3ff51df5f06e16803c628fe89466cd2db3e32692
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Thu Jun 4 11:16:29 2026 +0200

    Fix mvnup PLUGIN_UPGRADES inconsistencies for compiler and exec plugins (#12172) (#12225)
    
    maven-compiler-plugin was listed as 3.2.0 but Maven Central only has 3.2,
    causing resolution failures. exec-maven-plugin had wrong groupId
    (org.apache.maven.plugins) and artifactId (maven-exec-plugin), inconsistent
    with getPluginUpgradesMap() which correctly uses org.codehaus.mojo:exec-maven-plugin.
    
    Co-authored-by: Claude Opus 4.6 <no...@anthropic.com>
---
 .../maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java b/impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java
index 17dc1859db..89d963b538 100644
--- a/impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java
+++ b/impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java
@@ -746,7 +746,7 @@ void shouldHavePredefinedPluginUpgrades() throws Exception {
                     upgrades.stream().anyMatch(upgrade -> "maven-surefire-report-plugin".equals(upgrade.artifactId()));
 
             assertTrue(hasCompilerPlugin, "Should include maven-compiler-plugin upgrade");
-            assertTrue(hasExecPlugin, "Should include maven-exec-plugin upgrade");
+            assertTrue(hasExecPlugin, "Should include exec-maven-plugin upgrade");
             assertTrue(hasSurefirePlugin, "Should include maven-surefire-plugin upgrade");
             assertTrue(hasFailsafePlugin, "Should include maven-failsafe-plugin upgrade");
             assertTrue(hasSurefireReportPlugin, "Should include maven-surefire-report-plugin upgrade");