How to add own project to public maven repository?
-
26-10-2019 - |
Question
I'd like to add my project to public maven repository so that it can be used by community. It doesn't have to be maven central - just any kind of public and free repository for open source code.
How do I do that (in easiest way)?
Solution
Probably 3 ways to do this:
- If you have a web server you can simply drop the jar and pom into a directory, eg:
yourserver.com/mavenRepo/com/yourcompany/v1.0/yourjar.jar
This is the 'quick and dirty' way, but then the public can add yourserver.com/mavenRepo as a repository. - Have an out-facing instance of Nexus or Artifactory
- Make the project more official through one of the common open source projects, described in the 'Approved Repository Hosting' and the 'Other Projects' sections of this page.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow