Is there any free online maven repository?

后端 未结 7 1219
攒了一身酷
攒了一身酷 2021-02-01 16:36

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

7条回答
  •  迷失自我
    2021-02-01 17:28

    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

       
          
          dropbox.repo
           file:///C:/Users/Lakshman/Dropbox/Public/repository
          
      
      

    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.

提交回复
热议问题