Update Sonatype repository URLs in pom.xml#327
Conversation
|
There was a problem hiding this comment.
Pull Request Overview
This pull request attempts to update the Maven repository URLs in the pom.xml file to use new Sonatype endpoints for snapshot and release deployments. However, the updated URLs appear to have issues that may prevent successful artifact deployment.
Key Changes
- Updated snapshot repository URL from
s01.oss.sonatype.orgtocentral.sonatype.com - Modified release repository URL to use
ossrh-staging-api.central.sonatype.comendpoint
| <repository> | ||
| <id>ossrh</id> | ||
| <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
| <url>https://ossrh-staging-api.central.sonatype.com/service/local/</url> |
There was a problem hiding this comment.
The release repository URL is incomplete. The staging deployment endpoint should include the full path. The current URL https://ossrh-staging-api.central.sonatype.com/service/local/ is missing the /staging/deploy/maven2/ path component.
The correct URL should be: https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/
| <url>https://ossrh-staging-api.central.sonatype.com/service/local/</url> | |
| <url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url> |
| <snapshotRepository> | ||
| <id>ossrh</id> | ||
| <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> | ||
| <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
There was a problem hiding this comment.
The snapshot repository URL appears to be incorrect. According to Sonatype Central Publishing documentation, snapshots cannot be deployed to https://central.sonatype.com/repository/maven-snapshots/ (this is a browsing/download endpoint, not a deployment endpoint).
For the new Sonatype Central Publishing system, snapshots should typically be deployed to https://central.sonatype.com/api/v1/publisher/upload (or continue using the legacy OSSRH endpoint if you haven't migrated yet).
Additionally, note that the nexus-staging-maven-plugin configuration at line 190 still references the old URL https://s01.oss.sonatype.org/, which should also be updated to match the new endpoints if migrating to Sonatype Central Publishing.
| <url>https://central.sonatype.com/repository/maven-snapshots/</url> | |
| <url>https://central.sonatype.com/api/v1/publisher/upload</url> |



This pull request updates the Maven repository URLs in the
pom.xmlfile to use the latest Sonatype endpoints for both snapshot and release deployments.Repository configuration updates:
snapshotRepositoryURL tohttps://central.sonatype.com/repository/maven-snapshots/to reflect the new Sonatype snapshot repository location.repositoryURL tohttps://ossrh-staging-api.central.sonatype.com/service/local/for deploying release artifacts to the new staging API endpoint.