我正在尝试运行 gradlew 来构建一些提供给我的代码。源代码是从这里下载的 ZIP ,我所做的只是打开命令提示符,cd 到该文件夹并运行 gradlew.bat。
我已经在我的 crash'n'burn 机器上完成了这项工作,但我无法让它在我的主要开发机器上工作。开发机器位于需要身份验证的代理后面,另一台机器不需要 - 它们位于不同的位置。
最初,我得到:
Exception in thread "main" java.net.UnknownHostException: services.gradle.org
从this到 gradle.properties,我添加了:
systemProp.http.proxyHost=192.168.x.y
systemProp.http.proxyPort=80
systemProp.http.proxyUser=myuserid
systemProp.http.proxyPassword=mypassword
并再次运行它并得到:
C:\Users\tso259sa\workspace\spring-security-saml-master>gradlew.bat
Downloading http://services.gradle.org/distributions/gradle-1.4-bin.zip
Exception in thread "main" java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at sun.net.www.MeteredStream.read(MeteredStream.java:134)
at java.io.FilterInputStream.read(FilterInputStream.java:133)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3052)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3046)
at org.gradle.wrapper.Download.downloadInternal(Download.java:67)
at org.gradle.wrapper.Download.download(Download.java:49)
at org.gradle.wrapper.Install.createDist(Install.java:51)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
有关信息,如果我尝试输入错误的密码或 ID,我会得到:
Exception in thread "main" java.net.ProtocolException: Server redirected too many times (20)
所以我认为排除了不正确的ID。有人有什么想法我可以尝试吗?