-
Notifications
You must be signed in to change notification settings - Fork 26
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
Plugin reports failure despite successful release #110
Comments
When repository is closed ( I tried to find the build on Travis, but I couldn't find on. Is the execution result from Travis or a local machine? Btw, have you noticed:
You could apply an addition plugin to "fix" it. Along the line, it is makes parallel releasing of different projects within the same staging repository possible. |
I checked the code and a parallel build at that stage should not be a problem. The
|
Not in this case, no. This project is the only one that uses the
Local machine only for Maven Central deployments.
I have, yes. Unfortunately I ran into further errors with the
There's no staging repository present.
Yes, I've performed two releases and it has happened both times. |
That's weird. You can run it with |
Btw, Regarding |
Got it, and got it!
Thanks, I'll give it a read. I suspect part of my problem might be that I'm deploying an Android project. If it was plain Java without any of the Android tool brokenness, I'd be using Maven. |
I just did a release today and the problem didn't occur. Wondering if it was a transient problem with Maven Central... |
I've had this happen again this morning. Of course I wasn't running with |
FWIW, I see similar issues with Gradle 6.0.1, nexus-staging plugin 0.21.1 and nexus-publish plugin 0.4.0:
When I go and look in the UI at https://oss.sonatype.org/#stagingRepositories, I see the repository is successfully closed. Unfortunately, I've just upgraded Gradle, taken the latest version of the plugins, and moved from For reference, this is my |
I had similar errors recently on e2e sanity tests on Travis. Retrying helped, so it might be an issue at the Sonatype side (Nexus hasn't been very reliable recently, but it is definitely better than a few weeks ago). @markslater How often do you see it? |
Three or four times in the past two days. I've also just had a failure to release through the UI, which then succeeded on the third attempt, so that supports the idea that something's a bit wonky with Sonatype at the moment. I'll try again at some point tomorrow. |
Now I've had some time to mull this over, it appears that there are two issues at play. The first is that sometimes oss.sonatype.org times out resulting in inconsistent failures. The second was that publish was consistently failing for me because of gradle/gradle#11308. Setting |
It is happening to me, it is closed but gradle is failing. In my case this is the problem |
This is not working for me |
I am getting too this error some times. Gradle 6.5. |
@JavierSegoviaCordoba Have you checked Nexus UI to get know why this staging repository hasn't been transitioned correctly? |
@szpak I dropped the repo and tried multiple times to close via gradle. Last time it was successful in the try 21/21. Maybe sonatype problem? |
@JavierSegoviaCordoba It might be. However, one important things to rememer. |
I am just closing the repo, I release manually from Nexus UI. The problem was CI was failing but the repo was closed perfectly in Nexus UI. |
In that case just increase the default timeout in the plugin. It was fine 2 years ago, but at the end of 2019 Sonatype Nexus had some performance issues and it is too short. I will probably release a new version with that adjusted (although probably to so long and suggested in #164). |
I have increased it to 50 - 3000, but I am seeing 100 - 6000 in that PR so I am going to use that until you release the new version. Thank you! |
The rule of thumb is: increase timeout to the value that works for you. Unless there is a validation error, Sonatype Nexus should finish it eventually (most likely ;-) ). |
The timeouts have been increase in 0.22.0. Nevertheless, please consider migration to gradle-nexus-publish-plugin. A longer version. To make releasing to Maven Central even easier, I and Marc Phillip (the author of nexus-publish-plugin) combined forces to create a next generation, unified, 2-in-1 plugin - gradle-nexus-publish-plugin. It is a recommended solution, as our development effort will be put in that new plugin. See my blog post and the official migration guide. |
Hello!
This is the exact configuration I'm using:
https://github.com/irradia/one.irradia.mime/tree/773e9b31158a71e59ac000834333b5550c83e338
I recently ran:
The output at the end of the execution was:
The artifacts were sent to Maven Central, the staging rules completed successfully, and the artifacts were released:
https://repo1.maven.org/maven2/one/irradia/mime/
The text was updated successfully, but these errors were encountered: