views:

107

answers:

2

Is there anything I could do to get my own open source stuff into Maven's Central repository?

I've wondered many times how I could get my own projects into Maven's Central repository. I was asking this myself, especially as I've seen some well known projects hosting their own repository, requiring users to add dependency and repository. At the same time, it's getting difficult for other projects to depend on those projects. As I neither want others to add an additional repository nor to host one myself, I'm looking for other ways.

And why aren't some projects using the option to deploy to Maven Central in favor of their self-hosted repository? Any good reasons that aren't obvious?

+6  A: 

Have you taken a look at the Guide to uploading artifacts to the Central Repository?

matt b
Thanks for the link. Actually I looked at it a while ago - but obviously forgot about it. As it looks quite simple to do so, I wonder why several projects still don't use that option.
sfussenegger
There is even an easier way: http://nexus.sonatype.org/oss-repository-hosting.html
domi
+2  A: 

As Domi mentiones, the easiest way is to use Sonatype's free hosting because to get your artifacts to Maven Central you must first upload them to an "approved forge" - such as Sonatype.

I've written a short guide that describes how to get started with Sonatype whether you use Maven or not to build your OSS project. They have their own guide but it isn't as clear as it should, so I've added those missing bits to my post and I link to the original guide where appropriate. Check http://jroller.com/holy/entry/releasing_a_project_to_maven

Jakub Holý
+1 thanks for your comment and the link. One hand washes the other, right? ;)
sfussenegger