Is there any free online maven repository?

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.


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