Is it possible to publish to Maven Central Repository from SourceForge?

Viewed 456

I wanted to publish an open source Java library to Maven, so it's easily acessible to other projects. The Git repository is at SourceForge, but I don't quite understand if it's possible to publish from here or not.

Reading the Maven guide to uploading artifacts I see that only three repositories are "approved". Namely:

  • Apache Software Foundation
  • FuseSource Forge
  • Nuiton.org

My Question

If I create a secondary git repository in one of those, wouldn't that be a hassle to keep both git repositories in sync? I mean, is it wise to have duplicate git repositories, just to be able to publish to the Maven Central Repository?

What sensible options do I have?

2 Answers

From the link you attached:

Automatic publication will be provided for Forges that provide hosting services for OSS projects and other large project repositories that meet certain minimum criteria such as validation of PGP keys and pom contents as defined above. If you are interested in becoming an approved Forge, contact us at repo-maintainers@maven.apache.org.

Did you try this method? Another option, again from the link:

The easiest way to upload another project is to use the Open Source Software Repository Hosting (OSSRH), which is an approved repository provided by Sonatype for any OSS Project that want to get their artifacts into Central Repository.

However I think this one requires paying for nexus hosting

Another option is to publish to other public maven repository, see a list here

Related