Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add own project to public maven repository?

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)?

like image 689
Daimon Avatar asked Nov 30 '11 18:11

Daimon


People also ask

What is public Maven repository?

Public repositories store software artifacts that are free for the entire world to download. Maven and other build tools connect to public repositories to download dependencies used in software projects. Dependencies are downloaded to the local maven repository, which defaults to the ~/.


1 Answers

Probably 3 ways to do this:

  1. 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.
  2. Have an out-facing instance of Nexus or Artifactory
  3. 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.
like image 183
Roy Truelove Avatar answered Sep 17 '22 19:09

Roy Truelove