From 93280731fb5262e7596572793c47b3531fd2b242 Mon Sep 17 00:00:00 2001 From: delchev Date: Fri, 28 Aug 2026 09:19:04 +0300 Subject: [PATCH] Build: drop the retired sonatype-public-repository plugin repository The nightly samples shard died in 2.8s, before a single test ran: Plugin org.apache.maven.plugins:maven-install-plugin:3.1.4 or one of its dependencies could not be resolved: Could not transfer artifact ... from/to sonatype-public-repository (https://ossrh-staging-api.central.sonatype.com/content/groups/public): status code: 400, reason phrase: Bad Request (400) That endpoint is gone. Every path under the group now answers 400 with "Endpoint /content/groups/public/... not supported. Please contact Central Support" - the root, maven-metadata.xml and any artifact alike. It was the only entry in , so it was consulted ahead of Central for every plugin the build resolves. The block above it already points ossrh at repo1.maven.org; the plugin repository was left behind on the dead Nexus-style path. The OSSRH public group was a proxy of Central plus staging snapshots, and snapshots were disabled here, so it never served anything Central does not - removing it loses no coordinate. Only one of the eight nightly shards failed because the other seven restored a Maven cache that already held maven-install-plugin:3.1.4 and never hit the network for it. Any shard whose cache misses a plugin fails, so a pom.xml change that invalidates the cache key would have taken the whole matrix down. Verified with a full-reactor `mvn dependency:resolve-plugins` against an empty local repository: BUILD SUCCESS, 551 artifacts downloaded, every request to repo.maven.apache.org or repo1.maven.org and none to ossrh-staging-api. Co-authored-by: Claude Opus 5 --- pom.xml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pom.xml b/pom.xml index acb42e3b1c8..a5fa6890ef7 100644 --- a/pom.xml +++ b/pom.xml @@ -863,19 +863,6 @@ - - - sonatype-public-repository - https://ossrh-staging-api.central.sonatype.com/content/groups/public - - false - - - true - - - - ossrh