我正嘗試使用gradle構建我的項目。 我是一個代理之後,我更新了這個文件gradle.properties,我添加了這些行Gradle,無法通過代理訪問在線存儲庫
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
我試過stacktrace,stil結果相同 – Ahmed
當然結果相同,但沒有更多信息?沒有堆棧跟蹤? o_O然後使用'-i'或者如果仍然沒有足夠的信息使用'-d'。 – Vampire
解決:) 我把代理地址沒有http和https 它現在工作O.o – Ahmed