-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add Aerie Maven artifacts to Maven Central #563
Comments
Unfortunately, publishing to Maven Central is quite a can of worms. Maven Central simply acts as a centralized reverse proxy, and packages synced to Maven Central must actually be hosted on some third-party repo like Sonatype's OSSRH. This requires requesting an account through their Jira, creating and publishing a PGP key, signing binaries, and then manually syncing them to Maven Central. Since the goal of this ticket is to just have publicly accessible maven packages, I looked into making our Github maven packages public. Unfortunately, this isn't supported first class by Github, (see this long-running discussion for details), but a workaround exists where you simply create a PAT that has read-only access to an organizations packages, and publish this publicly for those who want to consume your packages. Since public packages are 100% free according to Github's pricing page, this is a decent option while we wait for Github to natively support downloading public packages sans auth. |
I have to create a new personal access token occasionally even though they seem fine and haven't expired. I vote for maven central. Here's some links for manually and automatically pushing jars. |
Looking into this further, I discovered that publishing to Maven Central requires you to have DNS records on the domain these Maven packages are namespaced to e.g. |
As a note, I am currently speaking with the web admin of ammos.nasa.gov to see if we can add an aerie.ammos.nasa.gov subdomain. If we can do this, I think that namespace is cleaner since we are intended Aerie to be for all of NASA. |
aerie.ammos.nasa.gov is online and has a DNS record. Hopefully this unblocks us here. |
Per @skovati we have the subdomain but there is some question about whether we are able to use it for Maven or whether it should be hosted somewhere else - more investigation needed. |
I've confirmed that we are able to host DNS TXT records under I created a ticket on Sonatype for our publishing account, but it looks like they are in the process of moving their account / namespace creation to a new (non-Jira based) system. https://central.sonatype.org/news/20240109_issues_sonatype_org_deprecation/ Because of this, signups using the legacy flow are paused. We'll need to wait until Feb 1st to create an account using the new central portal. Steps following account creation are:
|
Chatted with @jpl-jengelke about publishing under |
This should no longer be blocked & we have the ability to publish packages to We need to test this process to make sure it works, but be careful to do so in a way that does not break things/expose an incorrect build to any consumers. |
See: https://maven.apache.org/repository/guide-central-repository-upload.html
This would help decrease the barrier to entry a bit since right now you need a GitHub account to use the Aerie Maven GitHub packages.
The text was updated successfully, but these errors were encountered: