简体   繁体   English

在Eclipse Neon中安装Saros“收集要安装的项目时出错”

[英]Installing Saros in Eclipse Neon “An error occurred while collecting items to be installed”

I'm trying to install Saros ( http://www.saros-project.org/ ) in Eclipse Neon but have repeatedly received the following error details: 我正在尝试在Eclipse Neon中安装Saros( http://www.saros-project.org/ )但反复收到以下错误详细信息:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Unable to read repository at http://downloads.sourceforge.net/dpp/de.fu_berlin.inf.dpp_14.10.31.jar?use_mirror=dfn.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Unable to read repository at http://downloads.sourceforge.net/dpp/de.fu_berlin.inf.dpp.core_0.1.0.jar?use_mirror=dfn.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Unable to read repository at http://downloads.sourceforge.net/dpp/de.fu_berlin.inf.dpp.whiteboard_14.10.31.jar?use_mirror=dfn.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I've tried all of the solutions I can find, all of which appear to be collectively posted on this page: What to do about Eclipse's "No repository found containing: ..." error messages? 我已经尝试了所有可以找到的解决方案,所有这些解决方案似乎都集中在此页面上: 如何处理Eclipse的“找不到包含以下内容的存储库:”错误消息? but nothing appears to change. 但似乎没有任何改变。

My computer is running MacOS Sierra and my version of Eclipse is Eclipse Java EE IDE for Web Developers Version: Neon.2 Release (4.6.2) 我的电脑正在运行MacOS Sierra,我的Eclipse版本是用于Web开发人员的Eclipse Java EE IDE版本:Neon.2发行版(4.6.2)

Any other recommendations for what I could try next? 关于我接下来可以尝试的其他任何建议?

Thank you! 谢谢!

In December 2016, Sourceforge introduced automatic forwarding to HTTPS servers (even if the URLs are entered with HTTP) which used "Let's Encrypt" certificates. 2016年12月,Sourceforge引入了自动转发到HTTPS服务器(即使使用HTTP输入URL),使用“Let's Encrypt”证书。 Older Java versions (below Java 8u101 and Java 7u111) did not recognize "Let's Encrypt"'s root certificate and this results in said error message (no "valid certification path"). 较旧的Java版本(低于Java 8u101和Java 7u111)无法识别“Let's Encrypt”的根证书,这会导致出现错误消息(没有“有效的证书路径”)。

But: As of now, Sourceforge seems to have switched to "GeoTrust" certificates, which should pose no problem, even for older Java versions. 但是:截至目前,Sourceforge似乎已经转向“GeoTrust”证书,即使对于较旧的Java版本也应该没有问题。

So the first thing to check : Try to install Saros again. 所以首先要检查 :尝试再次安装Saros。 Do you still get certificate errors? 你还得到证书错误吗?

If the problem persists from some reason, you have two options: 如果由于某种原因问题仍然存在,您有两种选择:

  1. Easy way: Install Saros not from the update site, but as a dropin instead of using the update site. 简单方法:不是从更新站点安装Saros,而是使用dropin而不是使用更新站点。 There is a How-To on the project website: Instructions for installing Saros as a dropin 项目网站上有一个方法: 安装Saros作为dropin的说明

  2. Uncertain way: You could try to find out which certificate authority (CA) issued the certificates used by the HTTPS server you get forwarded to. 不确定的方式:您可以尝试找出哪个证书颁发机构(CA)颁发了转发到的HTTPS服务器使用的证书。 (Eg type one of the HTTP URLs from the error message into your web browser, wait until you get redirected to an HTTPS URL, and check the certificate information -- usually a green lock icon next to your address bar.) If you have the CA's name, there might be website explaining how to add its root certificate to your Java setup (similar to this one , which gives some hints for the "Let's Encrypt" case). (例如,将错误消息中的一个HTTP URL键入Web浏览器,等到重定向到HTTPS URL,然后检查证书信息 - 通常是地址栏旁边的绿色锁图标。)如果您有CA的名称,可能有网站解释如何将其根证书添加到您的Java设置(类似于这个 ,它给出了“Let's Encrypt”案例的一些提示)。

Update (2017-03-31): 更新(2017-03-31):

I heard from others that the problem with Sourceforge still persists for them. 我从其他人那里听说Sourceforge的问题仍然存在。 As an alternative to installing Saros as a dropin (option 1 above), you can also use our secondary Eclipse update site which is hosted on Heroku: https://get-saros.herokuapp.com/eclipse 作为安装Saros作为dropin(上面的选项1)的替代方法,您还可以使用我在Heroku上托管的辅助Eclipse更新站点: https//get-saros.herokuapp.com/eclipse

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM