Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any free online maven repository?

Is there any free online private maven2 or maven3 repository? So that team can access the repository from various region.

like image 327
Maheshkumar Avatar asked Sep 23 '11 09:09

Maheshkumar


People also ask

Is Maven Central free?

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.

Which is the most popular public Maven repository?

Maven Repository Format Apache Maven created the most widely used repository format in the Java development ecosystem with the release of Apache Maven 2. It is used by all newer versions of Apache Maven and many other tools including Apache Ivy, Gradle, sbt, Eclipse Aether and Leiningen.

Where can I find Maven repository?

Maven central repository is located on the web. It has been created by the apache maven community itself. The path of central repository is: http://repo1.maven.org/maven2/. The central repository contains a lot of common libraries that can be viewed by this url http://search.maven.org/#browse.

How do I host a Maven repository?

The best solution I've been able to find consists of these steps: Create a branch called mvn-repo to host your maven artifacts. Use the github site-maven-plugin to push your artifacts to github. Configure maven to use your remote mvn-repo as a maven repository.


2 Answers

we can use dropbox for online maven repository. But it is not completely private. you can use it if it gives you enough privacy.

This is the instruction to create free maven online maven repository on dropbox

  1. Create an account on dropbox
  2. Download and install dropbox client
  3. After you install dropbox client, A folder called "Dropbox" will create in Users folder. There is a public folder in it. Create a sub folder in public folder and copy the url of that sub folder(ex: C:\Users\Lakshman\Dropbox\Public\repository)
  4. Execute the following command to deploy the project artifacts to this path

mvn deploy -DskipTests=true -DaltDeploymentRepository=dropbox::default::file:///C:/Users/Lakshman/Dropbox/Public/repository

  1. you can use this in your pom file to the above task

     <distributionManagement>     <repository>     <id>dropbox.repo</id>      <url>file:///C:/Users/Lakshman/Dropbox/Public/repository</url>     </repository> </distributionManagement> 

if you have sync your local folder with dropbox it will automatically upload artifacts to online repository. you can get the link by login to Dropbox and go to public folder and click copy public link.

This solution got from here and referenced this also.

like image 27
lakshman Avatar answered Oct 27 '22 01:10

lakshman


If you use github, you could use a private github project as your maven repository. There are instruction on how to publish your maven artifacts to github here: https://stackoverflow.com/a/14013645/82156

like image 73
emmby Avatar answered Oct 26 '22 23:10

emmby