Search code examples
mavenjarrepositoryreportng

How to deploy JAR to Maven remote repository


Is there any way to put my JAR file in remote repository, so my maven project can get this JAR file from any place via Internet?

I have downloaded and did some fixes in the ReportNG project: https://github.com/dwdyer/reportng . Using ANT I have compiled this project into JAR, now I want to put it into remote Maven repository, but don't know how I can do that.

Could somebody please suggest me the way, how I can perform that?


Solution

  • If it is a released version you want to make available in maven central follow this guide: http://maven.apache.org/guides/mini/guide-central-repository-upload.html

    I'm no github professional but since a maven repo is just a file structure with some meta-data you can put it anywhere maven can read it (ftp, http, ...). so you could create a git repo to host your maven artifacts. see http://cemerick.com/2010/08/24/hosting-maven-repos-on-github/ for an example. (it may be outdated - github may have something like maven repo hosting, I just dont know)