-
Notifications
You must be signed in to change notification settings - Fork 41
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
VertxFileDownloader: Support of Http Proxy Configuration #766
Comments
Are you using Maven to build? You can set your Proxy at the Java level so all HTTP connections go through your proxy by editing your <settings>
...
<proxies>
<proxy>
<id>https-proxy</id>
<active>true</active>
<protocol>https</protocol>
<host>proxy-host</host>
<port>proxy-port</port>
<username>proxy-username</username> <!-- Optional -->
<password>proxy-password</password> <!-- Optional -->
<nonProxyHosts>www.example.com|*.mycompany.com</nonProxyHosts> <!-- Optional -->
</proxy>
</proxies>
...
</settings>
|
Hi, yes I build with "mvn clean install" and have already configured my maven settings.xml, but it seems to have no effect on the download. For example what works for me, is to download node/npm via the maven frontend plugin:
in the console output of maven it looks like this:
so somehow i am think that the issue is related to the VertxFileDownloader class |
yep you might be correct. |
PR submitted! |
@all-contributors add @threadlock05 for bug |
I've put up a pull request to add @threadlock05! 🎉 |
2.4.8 should be in Maven Central soon if you want to try it again |
Hi, thanks a lot for the quick response and fix.
so thats quite fine for me. |
I guess I have to study how maven works but I assumed they were simply setting those System Properties so it would be picked up? |
@threadlock05 ok so those .m2 settingsa are only available to Maven itself and Maven Plugins so it would require hooking into Maven which I don't want to do since Quarkus also fully supports Gradle (yuck). So your solution is a good one! |
Hello,
i am trying out your very cool extension for some days now and I am struggling with a proxy configuration on my system (which i can't change regarding the organizational policies).
Basically when building the project, it fails to download e.g node or npm files from the their official repositories.
So I have tried to "inject" the proxy settings on various ways, e.g. as environment variables HTTP_PROXY/HTTPS_PROXY, in the maven settings.xml, or as JVM properties on the maven run (-Dhttps.proxyHost=...). But none seemed to work.
The error/warning looks like this:
[WARNING] [io.quarkiverse.quinoa.deployment.packagemanager.PackageManagerInstall] An error occurred 'Could not download https://registry.npmjs.org/npm/-/npm-10.2.3.tgz' during the previous Node.js install, retrying (2/5)
So my workaround is to download it manually and put the files into the .quinoa/cache directory.
When looking into the code I came along the VertxFileDownloader which is utilizing the vertx WebClient, and I was wondering if it is respecting such http proxy settings or not, as for me it seems that must be done explicitly in the code.
Maybe someone of you has any idea on this? Thanks a lot!
The text was updated successfully, but these errors were encountered: