而在日食进口摇篮项目同行没有通过认证 [英] Peer not authenticated while importing Gradle project in eclipse
本文介绍了而在日食进口摇篮项目同行没有通过认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
虽然我在进口的gradle日食项目,它给我这个错误。
故障:建立失败,一个例外。* 什么地方出了错:
发生问题的根源配置项目测试。
>无法解析配置所有的依赖:类路径。
>无法解析de.richsource.gradle.plugins:GWT-gradle这个-插件:0.3。
要求:
:测试:不详
>无法获取'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'.
>同行没有通过认证*尝试:
与--stacktrace选项获取堆栈跟踪运行。与--info或--debug选项来运行,以获得更多的日志输出。
我通过代理连接使用互联网。如果是这样的问题,在这里可以指定在Eclipse中的代理服务器设置。在常规 - >网络连接,代理服务器设置已经在那里
请帮忙。
解决方案
如果您得到任何其它的错误是这样的:
不能让'https://some_server.com/some/path/some.pom。
>同行没有通过认证
然后,你需要导入证书:
- 在打开的 https://some_server.com/some/path/some.pom '你喜欢的浏览器
- 使用导出证书的<一个href=\"http://docs.bvstools.com/home/ssl-documentation/exporting-certificate-authorities-cas-from-a-website\">Steps从一个网站导出证书
- 复制到CER
JDK_HOME / JRE / lib / security中
文件夹 - 打开一个shell并转到
JDK_HOME / JRE / lib / security中
文件夹 - 然后使用 导入CER转换成Java
的keytool -import -alias&lt;保证服务器&gt;中短名称; -file&LT; cert_file_name_you_exported.cer&GT; -keystore cacerts中-storepass的changeit
块引用>它会提示你导入证书,键入yes,preSS进入。
然后重新启动Eclipse和尝试建设项目。
While I am importing gradle project in eclipse, it is giving me this error.
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.
I am using internet via proxy connection. If that is the issue, where to specify the proxy settings inside eclipse. In General-->Network connections, proxy settings are already there
Please help.
解决方案If you get any other error like this:
Could not GET 'https://some_server.com/some/path/some.pom'. > peer not authenticated
Then you need to import a certificate:
- open the 'https://some_server.com/some/path/some.pom' in your favorite browser
- export the cert using the Steps to export cert from a web site
- copy the cer into
JDK_HOME/jre/lib/security
folder- open a shell and go to
JDK_HOME/jre/lib/security
folder- then import the cer into java using the
keytool -import -alias <the short name of the server> -file <cert_file_name_you_exported.cer> -keystore cacerts -storepass changeit
It will prompt you to import the certificate, type yes and press enter.
Then restart your eclipse and try building the project.
这篇关于而在日食进口摇篮项目同行没有通过认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文