当我在 eclipse 中导入 gradle 项目时,它给了我这个错误。
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'test'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve de.richsource.gradle.plugins:gwt-gradle-plugin:0.3.
Required by:
:test:unspecified
> Could not GET 'https://github.com/steffenschaefer/gwt-gradle-plugin/raw/maven-repo/de/richsource/gradle/plugins/gwt-gradle-plugin/0.3/gwt-gradle-plugin-0.3.pom'.
> peer not authenticated
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
我正在通过代理连接使用互联网。如果这是问题所在,请在 eclipse 中指定代理设置的位置。在General–>Network connections里,代理设置已经有了
请帮忙。
原文由 MrTambourineMan 发布,翻译遵循 CC BY-SA 4.0 许可协议
注意:在执行这些步骤之前,请确保服务器值得信赖。
如果您收到类似这样的任何其他错误:
然后你需要导入证书:
JDK_HOME/jre/lib/security
文件夹JDK_HOME/jre/lib/security
文件夹它将提示您导入证书,键入 yes 并按回车键。
然后重新启动您的 eclipse 并尝试构建项目。