【发布时间】:2017-04-03 13:45:57
【问题描述】:
我正在尝试使用 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.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
【问题讨论】: