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

Task :releaseRepository FAILED #162

Closed
RoRoche opened this issue Apr 26, 2020 · 1 comment
Closed

Task :releaseRepository FAILED #162

RoRoche opened this issue Apr 26, 2020 · 1 comment
Labels

Comments

@RoRoche
Copy link

RoRoche commented Apr 26, 2020

When running the tasks ./gradlew closeAndReleaseRepository, I encounter the following error:

> Task :releaseRepository FAILED
Requested operation was executed successfully in attempt 13 (maximum allowed 21)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':releaseRepository'.
> Wrong 'comgithubroroche-1005' repository state 'closed' after transition (expected [released, not_found]). Possible staging rules violation. Check repository status using Nexus UI.

In my https://oss.sonatype.org/#stagingRepositories, I get the following messages:

Event: Failed: Repository Writable

typeId | RepositoryWritePolicy
-- | --
failureMessage | Artifact updating: Repository ='releases:Releases' does not allow updating artifact='/com/github/roroche/eo-rest/maven-metadata.xml.sha512'
@szpak
Copy link
Member

szpak commented Apr 26, 2020

You hit the limitation of Sonatype Nexus - https://issues.sonatype.org/browse/MVNCENTRAL-5276 . Unfortunately for some reasons it is hard to fix at the Nexus side. You can use workaround available in Gradle: gradle/gradle#11308 (comment)

@szpak szpak closed this as completed Apr 26, 2020
@szpak szpak added the question label Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants