in Maven Java OSS Sonatype ~ read.

Adding your artifacts to the public maven repo

Ever had a project that you want to share with every body and not want them to get your source code, build and install it public repository?

For quite some time there you can do this.

Just visit the url: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide follow all the instructions and within 3 days you are up and running and publishing you own artifact in the maven public repository.

Note:
When using a linux environment with github as a scm read: http://help.github.com/linux-set-up-git/