Gradle 格拉德尔,加拿大';t通过代理访问在线存储库
我正在尝试使用gradle构建我的项目。 我在一个代理后面,我更新了这个文件gradle.properties,我添加了那些行Gradle 格拉德尔,加拿大';t通过代理访问在线存储库,gradle,proxy,Gradle,Proxy,我正在尝试使用gradle构建我的项目。 我在一个代理后面,我更新了这个文件gradle.properties,我添加了那些行 systemProp.proxySet=true systemProp.http.proxyHost=http://cache.ha.opari.com systemProp.http.proxyPort=3328 systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost systemProp.https.p
systemProp.proxySet=true
systemProp.http.proxyHost=http://cache.ha.opari.com
systemProp.http.proxyPort=3328
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
systemProp.https.proxyHost=http://cache.ha.opari.com
systemProp.https.proxyPort=3328
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost
当我使用gradle启动构建时,我仍然存在同样的问题
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':icore:compileJava'.
> Could not resolve all dependencies for configuration ':icore:compileClasspath'.
> Could not resolve colt:colt:1.2.0.
Required by:
project :icore
> Could not resolve colt:colt:1.2.0.
> Could not get resource 'https://repo1.maven.org/maven2/colt/colt/1.2.0/colt-1.2.0.pom'.
> Could not GET 'https://repo1.maven.org/maven2/colt/colt/1.2.0/colt-1.2.0.pom'.
> http://cache.ha.opari.com
嗯,由于错误包含代理的URL,我认为代理设置可以正常工作,但代理不允许您访问该位置。也许可以尝试使用
-s
运行,以获取错误的完整堆栈跟踪,以获得更多信息。好吧,由于错误包含代理的URL,我认为代理设置工作正常,但代理不允许您访问该位置。可以尝试使用-s
运行,以获取错误的完整堆栈跟踪,从而获得更多信息。:
对我来说,这是http
前缀!如果是这种情况,请删除http/https
前缀
我的gradle.properties是这样的,但失败了:
systemProp.http.proxyHost=http://squid.proxy.com
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=http://squid.proxy.com
systemProp.https.proxyPort=8080
为gradle设置代理设置的正确方法是:
systemProp.http.proxyHost=squid.proxy.com
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=squid.proxy.com
systemProp.https.proxyPort=8080
:
对我来说,这是http
前缀!如果是这种情况,请删除http/https
前缀
我的gradle.properties是这样的,但失败了:
systemProp.http.proxyHost=http://squid.proxy.com
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=http://squid.proxy.com
systemProp.https.proxyPort=8080
为gradle设置代理设置的正确方法是:
systemProp.http.proxyHost=squid.proxy.com
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=squid.proxy.com
systemProp.https.proxyPort=8080
当然是同样的结果,但没有更多的信息?没有跟踪?o_o然后尝试使用
-i
,或者如果仍然没有足够的信息使用-d
。已解决:)我将代理地址放置在没有http和https的情况下,它现在可以工作o.oOf当然是相同的结果,但没有更多信息?没有跟踪?o_o然后尝试使用-i
,或者如果仍然没有足够的信息,请使用-d
。已解决:)我将代理地址放置在没有http和https的位置,它现在可以工作o.o