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

Quickly releasing multiple SDKs to Maven Central fails #587

Open
adinauer opened this issue Feb 13, 2025 · 1 comment
Open

Quickly releasing multiple SDKs to Maven Central fails #587

adinauer opened this issue Feb 13, 2025 · 1 comment

Comments

@adinauer
Copy link
Member

Environment

Ran a release of Maven and Gradle plugin.

Steps to Reproduce

  1. Release Gradle plugin
  2. Release Maven plugin right after Gradle plugin release succeeded

Expected Result

Both releases work

Actual Result

Second release fails with:

Error:  There are more than 1 active repositories. Please close unwanted deployments.

Which seems to be coming from

craft/src/targets/maven.ts

Lines 694 to 698 in 1f5cca9

if (repositories.length > 1) {
throw new Error(
`There are more than 1 active repositories. Please close unwanted deployments.`
);
}

Maybe we could check the status of those open repositories as in the Sonatype UI it shows the staging repository with status "Released" including a note that it can safely be dropped.

As a workaround you can log into the "Sonatype Nexus OSS" UI and drop the staging repo manually after the first release.

@adinauer
Copy link
Member Author

Also it seems running more than one release targeting Maven Central in parallel causes all of them to fail. Not sure there's anything we can do about that though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Discussion
Development

No branches or pull requests

1 participant