Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
how to proxy jitpack.io through nexus #506
I have a similar situation at work, the following lines in my settings.xml fixed it for me:
changed the title from
how to mirror jitpack.io through nexus
how to proxy jitpack.io through nexus
Apr 4, 2016
referenced this issue
May 19, 2016
The fix for the settings.xml does indeed work. however that just circumvents our company's nexus altogether.
Nexus does seem to create an index and if it does not have one does not seem to look for any artifacts for that repo. I will try to find the option to disable the remote index as @jgangemi suggested. However we are running an old version of Nexus, so I have to see if it supports that.
Thanks for your suggestions so far.
OK I've tried to turn off indexing. But Nexus is still refusing to talk to jitpack.io. When I save the configuration it tries do communicate with jitpack.io but encounters some error. No idea which since it's HTTPS. And Nexus does not show a warning or error anywhere.
Same Problem here... no luck proxying jitpack via Nexus.
<mirror> <id>nexus</id> <mirrorOf>*,!jitpack.io</mirrorOf> <url>http://company.com/nexus</url> </mirror>
And to create a profile which is added to the active profiles. This way you only have to put the desired dependencies into your pom and omit the repository declaration.
<profile> <id>jitpack</id> <repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> </repositories> </profile> <activeProfiles> <activeProfile>jitpack</activeProfile> </activeProfiles>
We've deployed a fix that should solve proxying via Nexus: https://issues.sonatype.org/browse/NEXUS-9890
Tested using Nexus 2 and 3.
To proxy JitPack:
Let us know if you still experience any issues.