-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to proxy jitpack.io through nexus #506
Comments
I have a similar situation at work, the following lines in my settings.xml fixed it for me:
|
I've run into the same issue. I'm suspecting the problem is that jitpack does not allow indexing of it's build artifacts. Any progress on this? |
It's true that jitpack doesn't publish an index though not sure why that would prevent proxying. |
if you're trying to mirror through nexus, there is an option to turn off generating the remote index. i have to do that in order to mirror one of |
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> |
Hi all, 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. |
Just wanted to say that @saulvargas answer for settings.xml is still relevant and useful, and that's what I came here for. |
@jitpack-io's answer (#506 (comment)) worked for us using Nexus 3.15. |
I have nexus 3.59 but it still doesn't sync with jitpack :-( |
we run a private nexus repository at work and proxy maven central, etc. i'm not having any lucky setting up a proxy and was hoping you could provide the correct configuration settings.
thanks!!
The text was updated successfully, but these errors were encountered: