From de66fecda24aff4771f6f8b1672b3bbe22629ed3 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 21 Sep 2026 12:06:01 -0400 Subject: [PATCH 1/4] chore: Migrate 5.x release workflow to Maven Central Migrates from legacy Sonatype OSSRH to new Maven Central Publishing API. This resolves the 402 Payment Required error by using the new publishing system that respects the approved exemption limits (10 releases, 100 MB, 8160 files monthly for io.serverlessworkflow). Changes: - Add central-publishing-maven-plugin v0.11.0 - Update workflow server-id from 'ossrh' to 'central' - Remove distributionManagement section (handled by new plugin) - Simplify release:perform invocation Signed-off-by: GitHub Action --- .github/workflows/release.yml | 4 ++-- pom.xml | 23 ++++++++++++----------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e4ec8ce5..87c87ae69 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: distribution: temurin java-version: 17 cache: 'maven' - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD @@ -51,7 +51,7 @@ jobs: cat release.properties git checkout ${{github.base_ref}} git rebase release - mvn -B release:perform -Prelease -Darguments="-DperformRelease" + mvn -B release:perform -Prelease env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} diff --git a/pom.xml b/pom.xml index 4fe5a1039..b15592ba2 100644 --- a/pom.xml +++ b/pom.xml @@ -64,6 +64,7 @@ ${java.version} 1.3.1 3.12.0 + 0.11.0 3.3.1 3.4.0 3.6.0 @@ -248,6 +249,17 @@ + + org.sonatype.central + central-publishing-maven-plugin + ${version.org.sonatype.central} + true + + central + true + uploaded + + org.apache.maven.plugins maven-gpg-plugin @@ -405,17 +417,6 @@ - - - ossrh-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - central From 3d1a52526e6a038489fbf4f0c27eef26531d92fb Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 21 Sep 2026 12:26:54 -0400 Subject: [PATCH 2/4] fix: Add central-publishing-maven-plugin to active build plugins The plugin was only in pluginManagement, not in the active build/plugins section, causing maven-deploy-plugin to run instead. This resulted in: "repository element was not specified in the POM inside distributionManagement" Moving the plugin configuration to build/plugins ensures it's active during the release process. Signed-off-by: GitHub Action --- pom.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pom.xml b/pom.xml index b15592ba2..ff68d8880 100644 --- a/pom.xml +++ b/pom.xml @@ -208,6 +208,17 @@ + + org.sonatype.central + central-publishing-maven-plugin + ${version.org.sonatype.central} + true + + central + true + uploaded + + org.codehaus.mojo From 431624aeed0fbf7942afd536a55b41fb081665ef Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 21 Sep 2026 12:45:11 -0400 Subject: [PATCH 3/4] fix: Remove central-publishing-maven-plugin from pluginManagement To match main branch structure, the plugin should only be in the active build/plugins section, not in pluginManagement. Signed-off-by: GitHub Action --- pom.xml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pom.xml b/pom.xml index ff68d8880..8b56d881b 100644 --- a/pom.xml +++ b/pom.xml @@ -260,17 +260,6 @@ - - org.sonatype.central - central-publishing-maven-plugin - ${version.org.sonatype.central} - true - - central - true - uploaded - - org.apache.maven.plugins maven-gpg-plugin From c52b367ff360cba7cac7720c3e240018a9587b8a Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 21 Sep 2026 14:15:30 -0400 Subject: [PATCH 4/4] fix: Add permissions for git push in release workflow Add contents: write permission to allow pushing tags and commits. Signed-off-by: GitHub Action --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87c87ae69..6e1d932ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,9 @@ on: paths: - '.github/project.yml' +permissions: + contents: write + jobs: release: runs-on: ubuntu-latest