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

XiaoHongbo-Hope pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/paimon-mosaic.git


The following commit(s) were added to refs/heads/main by this push:
     new 445507c  ci: switch Java release deploy to nexus-staging-maven-plugin 
(#56)
445507c is described below

commit 445507c532ff712b80b66d80cda4b2009b39676e
Author: jianguotian <[email protected]>
AuthorDate: Thu Jun 11 15:55:23 2026 +0800

    ci: switch Java release deploy to nexus-staging-maven-plugin (#56)
    
    Every release.yml run for 0.1.0 (rc1, rc2 ×5 retries, rc3, and the v0.1.0 
final tag — 7 total) failed in the same step with HTTP 502 from 
repository.apache.org on the jar PUT, including the v0.1.0 final tag run on 
2026-06-03. The jar on Maven Central had to be uploaded out of band. The retry 
added in #44 walks all 10 attempts and every one returns 502, so the failure is 
not transient.
    
    The underlying maven-deploy-plugin 2.8.2 from Apache Parent POM v23 uses 
the Maven Wagon HTTP transport, whose PUT for the jar artifact is rejected by 
the Apache Nexus reverse proxy. Replacing the deploy execution with 
nexus-staging-maven-plugin 1.7.0 (extensions=true) routes the upload through 
Sonatype's own HttpClient-based transport and gathers artifacts into a local 
staging directory before pushing them atomically. The same plugin is used by 
other Apache projects against repositor [...]
    
    autoReleaseAfterClose=false preserves the existing manual gate: the release 
manager still closes and releases the staging repository via the Nexus UI after 
the vote passes. Drops -DretryFailedDeploymentCount and 
-Daether.connector.basic.parallelPut from the workflow as both only apply to 
the vanilla deploy plugin.
    
    Co-authored-by: mingfeng <[email protected]>
---
 .github/workflows/release-java.yml |  4 +---
 java/pom.xml                       | 11 +++++++++++
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/release-java.yml 
b/.github/workflows/release-java.yml
index 47ac843..cd65905 100644
--- a/.github/workflows/release-java.yml
+++ b/.github/workflows/release-java.yml
@@ -172,9 +172,7 @@ jobs:
         run: |
           mvn clean deploy \
             -Prelease \
-            -DskipTests \
-            -DretryFailedDeploymentCount=10 \
-            -Daether.connector.basic.parallelPut=false
+            -DskipTests
         env:
           MAVEN_USERNAME: ${{ secrets.NEXUS_STAGE_DEPLOYER_USER }}
           MAVEN_PASSWORD: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}
diff --git a/java/pom.xml b/java/pom.xml
index c749ea5..870e722 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -186,6 +186,17 @@
                             </execution>
                         </executions>
                     </plugin>
+                    <plugin>
+                        <groupId>org.sonatype.plugins</groupId>
+                        <artifactId>nexus-staging-maven-plugin</artifactId>
+                        <version>1.7.0</version>
+                        <extensions>true</extensions>
+                        <configuration>
+                            <serverId>apache.releases.https</serverId>
+                            <nexusUrl>https://repository.apache.org/</nexusUrl>
+                            
<autoReleaseAfterClose>false</autoReleaseAfterClose>
+                        </configuration>
+                    </plugin>
                 </plugins>
             </build>
         </profile>

Reply via email to