当我在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.
我正在通过代理连接使用Internet。如果这是问题所在,请在eclipse中的哪里指定代理设置。在常规->网络连接中,代理设置已经存在
请帮忙。
最佳答案
注意:在执行以下步骤之前,请确保服务器是可信任的。
如果您遇到任何其他错误,例如:
Could not GET 'https://some_server.com/some/path/some.pom'.
> peer not authenticated
然后,您需要导入证书:
JDK_HOME/jre/lib/security
文件夹JDK_HOME/jre/lib/security
文件夹它将提示您导入证书,输入yes,然后按Enter。
然后重新启动Eclipse并尝试构建项目。