You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/08/09 16:00:48 UTC
(maven-remote-resources-plugin) branch master updated: Remove maven-compat without moving the consumer baseline
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-remote-resources-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new bdb0e5b Remove maven-compat without moving the consumer baseline
bdb0e5b is described below
commit bdb0e5b142042c4c4d9c7e536bcdc44a8ebe4409
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sat Aug 8 16:28:49 2026 +0200
Remove maven-compat without moving the consumer baseline
Nothing in the plugin imports anything from maven-compat; the comment
called it "needed in tests runtime", which was true but not because of
this plugin's code.
maven-core 3.6.3 ships DefaultProjectBuildingHelper with a field of the
legacy org.apache.maven.repository.RepositorySystem, whose only
implementation lives in maven-compat, so any test looking up a Mojo that
needs ProjectBuilder fails without it. maven-core changed that field to
org.apache.maven.bridge.MavenRepositorySystem in maven-core itself --
commit 3afbdb8f76, first released in 3.9.12.
mavenVersion therefore moves to 3.9.16, the current 3.9.x, and
resolverVersion to the 1.9.27 that ships with it. The stale "the same
version like in Maven 3.6.3" comment above resolverVersion goes with
them, and the dependency-analysis ignore list no longer needs its
maven-compat entry.
prerequisites/maven is pinned to a literal 3.6.3 rather than reading
mavenVersion, so the minimum Maven for consumers is unchanged. That
matches the rest of the 3.x plugin line -- maven-compiler-plugin,
maven-deploy-plugin, maven-shade-plugin and others all state 3.6.3
there independently of what they build against.
Tests: 10, 0 failures, identical to master under mvn verify.
Generated-by: Claude Opus 5 (1M context)
---
pom.xml | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/pom.xml b/pom.xml
index b3225b4..e91adc4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -39,7 +39,7 @@ under the License.
each project must include license and notice files for each release.</description>
<prerequisites>
- <maven>${mavenVersion}</maven>
+ <maven>3.6.3</maven>
</prerequisites>
<scm>
@@ -65,9 +65,8 @@ under the License.
<properties>
<javaVersion>8</javaVersion>
- <mavenVersion>3.6.3</mavenVersion>
- <!-- the same version like in Maven 3.6.3 -->
- <resolverVersion>1.4.1</resolverVersion>
+ <mavenVersion>3.9.16</mavenVersion>
+ <resolverVersion>1.9.27</resolverVersion>
<project.build.outputTimestamp>2024-12-30T10:45:13Z</project.build.outputTimestamp>
<!-- Used by site documentation as well, do not remove -->
@@ -229,13 +228,6 @@ under the License.
<version>2.0.0-M1</version>
<scope>test</scope>
</dependency>
- <dependency>
- <!-- needed in tests runtime -->
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-compat</artifactId>
- <version>${mavenVersion}</version>
- <scope>test</scope>
- </dependency>
<dependency>
<!-- needed in tests runtime -->
<groupId>org.slf4j</groupId>
@@ -370,7 +362,7 @@ under the License.
</goals>
<configuration>
<failOnWarning>true</failOnWarning>
- <ignoredDependencies>org.apache.maven:maven-compat:*,org.slf4j:slf4j-simple:*</ignoredDependencies>
+ <ignoredDependencies>org.slf4j:slf4j-simple:*</ignoredDependencies>
</configuration>
</execution>
</executions>