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

ascheman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-install-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 7114415  Build against Maven 4.0.0-rc-5
7114415 is described below

commit 71144156d1470c09a1eb4f558ac0348f5571ae65
Author: Gerd Aschemann <[email protected]>
AuthorDate: Wed Jun 17 21:46:15 2026 +0200

    Build against Maven 4.0.0-rc-5
    
    Bump mavenVersion from 4.0.0-rc-3 to 4.0.0-rc-5 so the plugin builds
    and tests against the current Maven 4 release.
    
    rc-5 introduced the org.apache.maven.api.xml.XmlService SPI, loaded via
    ServiceLoader. The unit-test harness (MojoExtension) parses test POMs
    through MavenStaxReader, which now requires an XmlService implementation;
    without it the tests fail with "No XmlService implementation found". Add
    org.apache.maven:maven-xml (provided), which supplies DefaultXmlService,
    matching maven-clean-plugin.
    
    Drop the explicit maven4-version from the CI workflow so it follows the
    shared workflow default (currently 4.0.0-rc-5) instead of pinning a
    stale RC.
    
    Verified with `mvn -P run-its clean verify` on 4.0.0-rc-5: unit tests
    14/14 and ITs 33/33 green.
---
 .github/workflows/maven-verify.yml | 1 -
 pom.xml                            | 8 +++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven-verify.yml 
b/.github/workflows/maven-verify.yml
index a646406..c39f094 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -27,4 +27,3 @@ jobs:
     uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4
     with:
       maven4-build: true
-      maven4-version: '4.0.0-rc-3' # the same as used in project
diff --git a/pom.xml b/pom.xml
index 34caa04..dc15749 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,7 +72,7 @@
 
   <properties>
     <javaVersion>17</javaVersion>
-    <mavenVersion>4.0.0-rc-3</mavenVersion>
+    <mavenVersion>4.0.0-rc-5</mavenVersion>
     <!-- Maven bound -->
     <slf4jVersion>2.0.18</slf4jVersion>
 
@@ -144,6 +144,12 @@
       <version>${mavenVersion}</version>
       <scope>provided</scope>
     </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-xml</artifactId>
+      <version>${mavenVersion}</version>
+      <scope>provided</scope>
+    </dependency>
 
     <dependency>
       <groupId>org.apache.maven.plugin-testing</groupId>

Reply via email to