2

Since the Github plugin for hosting maven repositories within Github is not working anymore, I am trying to find some other quick way to host a maven artifact.

One way I am thinking is to use my Dropbox 'Public' folder (since I still have it active now) and host the artifact from there.

  • What could be the approach to use Dropbox as maven repository?
  • Is there a plugin to use Dropbox as maven repository?
quarks
  • 33,478
  • 73
  • 290
  • 513
  • What about bintray.com ? – khmarbaise Dec 09 '14 at 18:55
  • I tried bintray, however it does have some soft of approval and they don't accept SNAPSHOT versions, I think bintray are for releases only – quarks Dec 09 '14 at 18:57
  • I use sonatype. It supports snapshots. – AlexR Dec 09 '14 at 19:01
  • For the record, deploying maven artifacts to GitHub does work: http://stackoverflow.com/questions/14013644/hosting-a-maven-repository-on-github I'm doing exactly that and I am able to deploy and fetch artifacts from my GitHub repository. – alexbt Jan 15 '17 at 17:40

1 Answers1

1

For people who share a common Dropbox folder, you can set it up as a Maven repository using this configuration in your project/pom.xml or maven/conf/settings.xml:

<repositories>
    <repository>
        <id>localDropbox</id>
        <url>file://[path to Dropbox folder]</url>
    </repository>
</repositories>

And to use mvn deploy to send artifacts there:

<distributionManagement>
    <repository>
        <id>localDropbox</id>
        <url>file://[path to Dropbox folder]</url>
    </repository>
</distributionManagement>

If the folder is publicly available, people who want access to that could have a http URL instead of filesystem URL in their <repository> declaration.

Jon Onstott
  • 13,499
  • 16
  • 80
  • 133