-
Notifications
You must be signed in to change notification settings - Fork 45
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
Connection timeout when running plugin behind an http proxy #177
Comments
Hello, I have the same kind of problem. Thank you |
You can implement proxy support into the 2.2.1 source branch by adding the following dependency to swap from HttpUrlConnection to Apache HttpClient 4:
CloudhubApi.java, change line 154 to:
In AbstractApi.java, change the getTarget method to:
Rebuild and mvn install so it goes into your local repository. Use the 2.2.2-SNAPSHOT version of the plugin in your Mule pom.xml and on the mvn command line for mvn deploy, add the values for -Ddeploy.proxy.uri=, etc for the values you need. The deployment plugin will use those values and the Apache HttpClient proxy implementation to connect to Anypoint through a proxy (including authenticating proxies if you include the two other properties). |
Hi Dwaller, Could you please advise if this issue is closed and which version of jar I have to use for proxy?Thanks, |
Deploying with jenkins maven goal |
mvn clean release:prepare release:perform -X -Darguments="-DskipTests -Dhttps.proxyHost=proxy -Dhttps.proxyPort=80 -Dhttps.proxyUser=**** -Dhttps.proxyPassword=****" Throughs 407 proxy authorization error though we pass proxy details as parameter.Looks like Maven Release can't fork the parameters to Mule maven plugin? Please help urgently. |
I'm not sure authenticating proxy support is in Java as standard: https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html I used eclipse and built a new Mule maven plugin with Apache HttpClient which does support authenticating proxies. I only needed version 2.2.1 of the Mule maven plugin, so the change over was pretty simple. Not sure about the latest branch of the Mule maven plugin. |
Maven Mule Snaphost Build/Deploy with proxy autherisation works fine as parmater hwoever with Maven Release perform it is behaving intermittent and fails with 407 proxy authentication.It uses the same java as maven snapshot build uses right then why this issue is coming where it seems proxy user is not getting passed to the proxy server which is being passed as argument below? Thanks, |
Solution for us was to change our proxy config on the server to accept deployconnections (*.mulesoft.org) from our jenkins IP without proxy authentication. Workaround for local users is to use https://github.com/quaddy-services/escape-from-intranet and then The escape-from-intranet will enrich the Proxy-Authentication header if missing. |
Hi Stefan, |
Since it is linux there is no GUI |
or there is any other solution for Maven Release Mule deploy with proxy authentication here?I have tried below but didn't work out still - |
"https.proxyPassword" will not help until mule-maven-plugin correctly registers it to How to exclude single domains from your proxy server you need to "google". |
Hi Stefen, I'm checking this with Mulesoft team to change as you advised. But is there any option for Maven Release to work with Mule Maven plugin with proxy authentication ? Thanks, |
Hi Siddharth,
with
in your ~/.m2/settings.xml |
Hi Stefen, Apologies is the above is for 407 proxy issue? Do you know where to update in the mule maven plugin to use as stated below? https://stackoverflow.com/questions/27442177/disable-ntlm-on-apache-httpclient-4-3-6 [INFO] WARN 2018-12-17 16:40:52,882 [main] org.apache.http.impl.auth.HttpAuthenticator: NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)) |
I have a Jenkins machine in a network behind an http proxy. Maven is configured right with proxy in settings.xml but the plugin doesn't consider that and the calls to anypoint.mulesoft.com APIs throw a timeout exception.
I wish I could configure an http proxy to reach Anypoint APIs.
The text was updated successfully, but these errors were encountered: