-
Notifications
You must be signed in to change notification settings - Fork 4
Update Sonatype repository URLs in pom.xml #327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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> |
Copilot
AI
Nov 14, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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> |
Copilot
AI
Nov 14, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.