Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add Github raw repositories to Sonatype Nexus as Proxy repository?

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?

like image 569
KwonNam Avatar asked Aug 01 '13 10:08

KwonNam


1 Answers

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.

like image 178
KwonNam Avatar answered Oct 12 '22 03:10

KwonNam