keenlabs / KeenClient-Java

Official Java client for the Keen IO API. Build analytics features directly into your Java apps.
https://keen.io/docs
MIT License
74 stars 43 forks source link

Maven / Sonatype repo support #2

Closed jed204 closed 11 years ago

jed204 commented 11 years ago

You may want to adjust the 'developers', 'organization', and 'version' tags. Otherwise this should allow for a mvn install deploy to send to Sonatype (after you signup for an account of course)

dkador commented 11 years ago

Thanks for the pull, looks good (and I'll edit the tags you suggested).

dkador commented 11 years ago

Have any guides on how to get this into maven? I'm no maven expert and it seems much more complicated than pypi or rubygems...

jed204 commented 11 years ago

This is the one I used:

https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide

In the pom.xml file I added all the tags you need (I think). Main part you need to do is signup and claim your namespace (io.keen) and get your user account.

Once you have your user credentials you can use maven to deploy to Sonatype's maven repo using:

mvn clean install deploy

You'll need a GPG signature and a proper version number. Once you have deployed using maven you can login to sonatype (http://oss.sonatype.org) to 'release' your package.

There is probably an easier way but once it's setup this works pretty well.

dkador commented 11 years ago

I think I got this going now. :) Sonatype just has to pull changes in from my snapshot repo.

Thanks for all your help!