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:
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?
Actually, nexus private repository is the common way to share our 3rd party jar for private use.
https://www.sonatype.com/nexus-repository-sonatype
you can build your own repostory with the guide
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 [email protected].
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With