-
Notifications
You must be signed in to change notification settings - Fork 65
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
Sonatype repository change since February 2021 #214
Comments
Publishing to oss.sonatype.org both for releases and snapshots repositories has been working well even in March 2021. I think the reason of the error would be different. Or this change might have been applied only to newly registered sonatype users. If necessary, you can overwrite |
Hi, yes new users do not have rights on oss.sonatype.org In my build.sbt I add But I already have the same issue |
The 403 error is because the groupId in your POM does not match the groupId you were granted permissions for on s01.oss.sonatype.org. The error text implies that your groupId is simply core, and that doesn't look like any groupId that you'd be allowed to publish under, so the 403 is expected. |
Hi, now I have right on oss.sonatype.org and it works like a charm. thanks |
I can't get this to work. I struggled for a long time trying to set Even after doing that it still fails with:
I've just spent ages trying to track this down and debug it which is not that easy considering I need to replicate my CI environment to get the commands to do the right things and I discovered that despite there being these URL settings the deploy URL is hard coded in |
sbt-sonatype 3.9.6 has been released so that we can switch the target just with |
Hi, I still have an issue :
Am I alone ? |
@larousso Are you setting |
Yes I am
I've tried only with
But same result. At the moment, I've tried |
I've just found publishing to snapshot repo still points to the legacy repository. ok. I'll add a fix |
@xerial what are the symptoms of that? I was trying to do snapshot releases and were getting a "too many redirects" error. From the logs it wasn't obvious that it was using the wrong URL. |
Publishing to snapshot repositories is managed by sbt, not by sbt-sonatype. If publishTo is properly configured to use s01 repo in |
@larousso @steinybot Just created a snapshot version #220 that probably fixes this issue https://oss.sonatype.org/content/repositories/snapshots/org/xerial/sbt/sbt-sonatype_2.12_1.0/3.9.7-SNAPSHOT/ Could you try it to confirm whether it fixes the issue? |
It works! I was able to publish a snapshot version of my multi-project to the new Sonatype repo with 3.9.7-SNAPSHOT. Thank you all!! |
Hi, it works fine for both snapshot and release! Thanks |
Great! ok. I'll release this version as 3.9.7. |
Published sbt-sonatype 3.9.7 |
I'm using sbt-sonatype 3.9.7 with
It still isn't working, I can't get SNAPSHOT published, I'm getting
What am I doing wrong? |
You, idiot, have been using token credentials from |
* upgrade sbt-sonatype to 3.9.7 to support s01.oss.sonatype.org re xerial/sbt-sonatype#214 * add legacy host warning re s01.oss.sonatype.org * only one extra setting needed, apparently
Hi,
I've just created a new component and I want to push it on sonatype using your plugin.
I have an issue in github action for task "run sbt ci-release"
[error] java.io.IOException: Server returned HTTP response code: 403 for URL: https://oss.sonatype.org/content/repositories/snapshots/io/github/***/core_2.11/1.0.0-SNAPSHOT/core_2.11-1.0.0-SNAPSHOT.pom
The url used to push the snapshot is https://oss.sonatype.org When I read the official documentation of sonatype https://central.sonatype.org/pages/releasing-the-deployment.html it seems that since feburary the server to used is not "oss.sonatype.org" but "s01.oss.sonatype.org"
Is there a way to overwrite the sonatype server url ?
Thanks
The text was updated successfully, but these errors were encountered: