-
Notifications
You must be signed in to change notification settings - Fork 30
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
Event: Failed: Profile target matcher or Staging repository is not in desired state #261
Comments
It seems those files doesn't correspond to the group you are permitted to publish to. See also https://issues.sonatype.org/browse/OSSRH-70341 or https://issues.sonatype.org/browse/OSSRH-48197 . You need to fix JAR building (you can examine the generated package with Btw, it is completely not related to the plugin. |
My GroupID is : com.oustme And I can able to see that in the staging repositories and while build the app, I;m added the group as com.oustme So, I;m not sure what is the issue with the group? |
Those files (paths) looks strange. Do you really need them in the archive? Have you been able to publish the project manually in the past? |
No, this is my first release to maven, I have followed the steps mentioned in this document : https://central.sonatype.org/publish/publish-guide/ And also I have followed this steps as well : |
I propose to run |
After |
are not available in your JAR, then I don't know why Nexus complains about them. This plugin - in general - only works with a staging repository in Nexus - artifact build and uploading is done outside (by the maven-publish plugin & co). You can try to publish your JAR manually without this plugin to verify it. You can also repo it in Sonatype's Jira, but first, I would recommend check if those path aren't somehow published there. Btw, what Gradle version do you use? In the past, there is a problem with sha256 and sha512 checksums in Nexus. However, it was years ago. |
Btw, I wonder if |
Maybe you have problem with the group ID? You can try to publish artifacts to Nexus (just publish, without using the staging repository features) and see what files are uploaded and with what path. |
Hi, thanks for the info, the same I found after I sent you the earlier comment. I was suppose to use com.oustme not the artefact id. And, I can able to close the staging repository, but I;m getting this error while releasing it. Eventhough I can't able to see the build comoustme-1008 in the nexus repository manager. "Releasing staging repository with id 'comoustme-1008' Expiring Daemon because JVM heap space is exhausted
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings BUILD SUCCESSFUL in 8m 50s |
Thanks for the prompt response, now I can able to successfully release the build |
Probably you wanted to release the same version twice or re-uploaded the same artifacts twice to the same staging repository. |
Probably you could stop the Gradle deamon |
Cool, I could read all the messages before answering :). Btw, you could write what was the problem(s) in your case, for people hitting this issue from the web search engine. |
Hi, I'm trying to close the repository and release it, where I;m getting this error "Event: Failed: Profile target matcher - profile-target-matching-staging"
Nexus repository manager : staging profiles screenshot
Nexus staging repository error screenshot
Screenshot while I;m run in the terminal,
The text was updated successfully, but these errors were encountered: