Nowadays there are a lot of github hosted Maven repositories. ex) https://github.com/nhnopensource/nhnopensource.maven.repo
I tried to add those repositories into my Sonatype Nexus repository manager as proxy repository, but failed all the time.
But the repositories work fine when I set repository url directly to the github repositories in gradle/maven configuration.
Has anybody succeeded to add github hosted maven repository into Nexus?
I found the solution : https://github.com/sagemintblue/sagemintblue-repositories
If you use Sonatype's Nexus repository manager, you may want to add proxy entries to your Nexus configuration for the Sagemintblue repositories. Here are a few notes to keep in mind:
Sagemintblue repositories don't contain indices. You should set Remote Repository Access > Download Remote Indexes to false.
Because GitHub doesn't generate directory listings for raw repository directory URLs, Nexus will automatically block the proxied repositories if Remote Repository Access > Auto blocking active is set to true. Set this option to false and click Refresh. You should see a Repository Status of Attempting to Proxy and Remote Unavailable. Nexus should still be able to access specific artifact, pom and checksum file URLs despite the missing directory listings.
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