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-deploy-plugin.git

commit 4c019c42743f685d693539bfa54725928015ca9b
Author: Matthias Bünger <[email protected]>
AuthorDate: Sat Dec 13 19:58:00 2025 +0100

    Failing to update to rc5
    
    fails with "java.lang.NoClassDefFoundError: Could not initialize class 
org.apache.maven.api.xml.XmlService" a class which is not used in any of the 
mojos or their tests.
    
    (cherry picked from commit f801ee5981b7314d1974782053034d169b3e714b)
---
 .github/workflows/maven-verify.yml                                | 2 +-
 pom.xml                                                           | 2 +-
 src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/maven-verify.yml 
b/.github/workflows/maven-verify.yml
index c62636b..cea0f17 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -27,4 +27,4 @@ jobs:
     uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4
     with:
       maven4-build: true
-      maven4-version: '4.0.0-rc-3' # as in project, rc-4 needs some work
+      maven4-version: '4.0.0-rc-5' # as in project
diff --git a/pom.xml b/pom.xml
index 9aab8d7..cb925ba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -69,7 +69,7 @@ under the License.
 
   <properties>
     <javaVersion>17</javaVersion>
-    <mavenVersion>4.0.0-rc-3</mavenVersion>
+    <mavenVersion>4.0.0-rc-5</mavenVersion>
 
     <guiceVersion>7.0.0</guiceVersion>
     
<mavenAntrunPluginVersion>${version.maven-antrun-plugin}</mavenAntrunPluginVersion>
diff --git a/src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java 
b/src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java
index 63c269e..72d5bb5 100644
--- a/src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java
+++ b/src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java
@@ -368,7 +368,7 @@ public class DeployFileMojo extends AbstractDeployMojo {
                     ProducedArtifact deployable = 
session.createProducedArtifact(
                             artifact.getGroupId(),
                             artifact.getArtifactId(),
-                            artifact.getVersion().asString(),
+                            artifact.getVersion().toString(),
                             classifiers.substring(ci, nci).trim(),
                             extension,
                             type);

Reply via email to