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

Publish to Maven Central #50

Open
cowwoc opened this issue Nov 16, 2023 · 4 comments
Open

Publish to Maven Central #50

cowwoc opened this issue Nov 16, 2023 · 4 comments

Comments

@cowwoc
Copy link

cowwoc commented Nov 16, 2023

Obvious question: Can you please publish your library to Maven Central? It would make it a lot easier for end-users to work with it.

@robinbraemer
Copy link
Owner

Thanks for the feedback.

It currently uses Jitpack, is there any unusability issue with that?

@xgp
Copy link

xgp commented Aug 29, 2024

Three issues:

  1. The way maven works, when you add a repository, it checks all repositories for all libraries, and you can't just limit it by the library.
  2. Related to the above, many organizations have policies that require them to use only certain "vetted" repositories.
  3. Maven Central is considered the "standard", and many people will not use something that isn't published there.

Let me know if you'd accept a PR, and I can add a github action and make the pom changes that will auto publish for you.

@robinbraemer
Copy link
Owner

robinbraemer commented Aug 29, 2024

Sure, I'm looking forward to your PR. It would be helpful if you could provide some steps along with it. (any registration needed?)

Also, you might want to based it on #54

@xgp
Copy link

xgp commented Aug 29, 2024

Yes. You'll need to create an account on Sonatype, and validate your "ownership" of your groupId, but I will send links to those steps in the PR.

This is an example of the github action definition that will do it https://github.com/p2-inc/keycloak-orgs/blob/main/.github/workflows/release.yml
It uses this action https://github.com/qcastel/github-actions-maven-release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants