mulesoft-labs / mule-gradle-plugin

Plugin for building mule apps with the gradle build system.
Apache License 2.0
24 stars 14 forks source link

Connection timed out when behind proxy #53

Closed willis7 closed 9 years ago

willis7 commented 9 years ago

When working within the confines of a corporate network I have found that the network proxy blocks the plugin, and as a result causes a connection timeout. I have proven this is not an issue when using a dirty network.

I will make some tweaks in the plugin and report back any findings. This resource seems to be particularly interesting and could possibly be applied to HttpUtils.

willis7 commented 9 years ago

Ok, I found a workaround. Adding the following to a command line call to gradle will resolve the issue: -Dhttps.proxyHost=proxyHost -Dhttps.proxyPort=proxyPort

Note you have to be sure to write https and not just http like most articles suggest.

An example:

gradle deploy -Dhttps.proxyHost=proxyHost -Dhttps.proxyPort=proxyPort

this can also be added to the gradlew/gradlew.bat files too:

set DEFAULT_JVM_OPTS=-Dhttps.proxyHost=proxyHost -Dhttps.proxyPort=proxyPort

juancavallotti commented 9 years ago

Thank you for this information.