Skip to content
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

No staging repository with name sonatype created #217

Open
andylamax opened this issue Apr 20, 2023 · 1 comment
Open

No staging repository with name sonatype created #217

andylamax opened this issue Apr 20, 2023 · 1 comment

Comments

@andylamax
Copy link

I am getting a weird error on projects that have surely worked previously.

Just to add more context. The plugin manages to create a staging repository in oss sonatype, but it fails to push any artifacts there and fails with the error

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':functions-core:publishJvmPublicationToSonatypeRepository'.
> No staging repository with name sonatype created
A quick search shows this happens during closingAndReleasing the repository but I am not even trying to close the repository. Has anyone experienced this before?? Help

I have looked into issue #96 issue and although the messages are the same, it doesn't appear to be a similar problem to the one I am currently having. Any help will greatly be appreciated

@blackarrow13
Copy link

It helped me to explicitly set staging repository ID in my build.gradle

nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri(Credentials.Sonatype.LOCAL_URL))
username.set(Credentials.Sonatype.USERNAME)
password.set(Credentials.Sonatype.PASSWORD)
stagingProfileId.set(Credentials.Sonatype.PROFILE_ID)
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants