-
Notifications
You must be signed in to change notification settings - Fork 221
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
Release Scene Builder kit to maven central #749
Comments
Is the release kit supposed to be consumed by Maven/Gradle builds (JARs and POMs)? If so then releasing to Maven Central is the way to go. If not, then publishing it as release asset (which is currently in place) is what I'd recommend. |
Releasing artifacts to Maven Central with JReleaser is described in the guide at https://jreleaser.org/guide/latest/examples/maven/maven-central.html Follow these steps:
You can try a deployment in dryrun mode by invoking |
Thanks, @aalmiray, I've followed your instructions, and created the PR #759. In order to test it, which would require merging into main, I'm running a test branch here: https://github.com/jperedadnr/scenebuilder/tree/test-publish (see https://github.com/jperedadnr/scenebuilder/actions/runs/11392044901), and based on it I've done some more changes. However, I'm not sure if there is an issue with the password/token I'm using (via secret), as I keep getting:
|
Right. You need username/token instead of username/password |
Sure, I've already got username/token, we've been using these to publish other artifacts to Maven Central successfully. I've tried so far a number of times (see https://github.com/jperedadnr/scenebuilder/actions), always with the same error. I've set the secrets several times as well, just to double/triple check. I've also added the server block to the settings.xml file with the same token (via setup-java action), but I guess this is not needed using JReleaser. In any case, it doesn't make a difference. Do you have any further advice on how to proceed? |
Well as far as I can tell this error occurs due to invalid credentials. Is the username/token combination valid for the chosen server ( |
Oh, you are right about using the legacy server https://oss.sonatype.org instead of https://s01.oss.sonatype.org It is confusing, since we can sign in in both with the same old Nexus user/password, and therefore I thought the new user/token secrets were the same for both. But now I see there are different, and I have now a new pair of secrets for s01. Running again with these and s01, I get:
Why can we publish to old Sonatype with maven-deploy-plugin, but not to s01 with JReleaser? |
Okay, changing back to oss.sonatype.org works... |
You can only publish to the server where your namespace is registered. You can find out by login into a given server using the UI and inspecting your staging profiles. |
JReleaser needs to be updated to also release kit to Maven Central. Currently the kit jar file is only pushed to Github Releases and AWS S3.
In addition to this, we also need to push snapshots to maven central as well.
The text was updated successfully, but these errors were encountered: