Volodymyr  Prysiazhniuk
Volodymyr Prysiazhniuk

Reputation: 1913

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?

Upvotes: 2

Views: 13784

Answers (4)

arulraj.net
arulraj.net

Reputation: 4837

I followed sonatype open source project maven deployment guide https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide and successfully deployed the latest version of reportNG into maven central repository. Now maven have both 1.1.3 and 1.1.4

http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.uncommons%22%20AND%20a%3A%22reportng%22

Upvotes: 0

emmby
emmby

Reputation: 100462

A lightweight way to create your own maven repository is to store it on github. See Hosting a Maven repository on github for more details

Upvotes: 0

wemu
wemu

Reputation: 8160

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)

Upvotes: 5

froderik
froderik

Reputation: 4808

You should do a pull request to the github project. If the maintainer likes your fix he will put it in the next version.

If you need your fix in a remote repo NOW then you'll have to setup your own maven repository.

Upvotes: -1

Related Questions