From a00ba6cc2f1d75aaca674129f6001ba1ae777f98 Mon Sep 17 00:00:00 2001 From: Markus Spann Date: Sat, 10 Oct 2026 14:21:00 +0200 Subject: [PATCH] build: use a dedicated server id for Sonatype Central Maven 3.10 only sends the credentials of server id 'central' to Maven Central itself (repo.maven.apache.org), so deploys to central.sonatype.com fail with HTTP 401. Use the id 'sonatype-central' instead. --- .github/workflows/maven_jdk21_deploy.yml | 2 +- pom.xml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven_jdk21_deploy.yml b/.github/workflows/maven_jdk21_deploy.yml index 57fb0560..78c26af5 100644 --- a/.github/workflows/maven_jdk21_deploy.yml +++ b/.github/workflows/maven_jdk21_deploy.yml @@ -30,7 +30,7 @@ jobs: dbus-java-transport-native-unixsocket/pom.xml dbus-java-transport-tcp/pom.xml dbus-java-utils/pom.xml - server-id: central + server-id: sonatype-central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - name: Build with Maven diff --git a/pom.xml b/pom.xml index 3fbcbaa8..251e728a 100644 --- a/pom.xml +++ b/pom.xml @@ -266,7 +266,7 @@ ${mvn.centralpublishing.plugin.version} true - central + sonatype-central true validated true @@ -438,12 +438,12 @@ - central + sonatype-central Sonatype Central Snapshots https://central.sonatype.com/repository/maven-snapshots/ - central + sonatype-central Sonatype Central Staging Repository https://central.sonatype.com