gpt4 book ai didi

java - 在 Eclipse Neon "An error occurred while collecting items to be installed"中安装 Saros

转载 作者:行者123 更新时间:2023-11-29 04:34:39 24 4
gpt4 key购买 nike

我正在尝试在 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

我已经尝试了我能找到的所有解决方案,所有这些似乎都集中发布在此页面上:What to do about Eclipse's "No repository found containing: ..." error messages?但似乎没有任何改变。

我的电脑运行的是 MacOS Sierra,我的 Eclipse 版本是 Eclipse Java EE IDE for Web Developers 版本:Neon.2 Release (4.6.2)

关于我下一步可以尝试的任何其他建议?

谢谢!

最佳答案

2016 年 12 月,Sourceforge 引入了自动转发到使用“让我们加密”证书的 HTTPS 服务器(即使 URL 使用 HTTP 输入)。较旧的 Java 版本(低于 Java 8u101 和 Java 7u111)无法识别“Let's Encrypt”的根证书,这会导致出现上述错误消息(没有“有效的证书路径”)。

但是:截至目前,Sourceforge 似乎已切换到“GeoTrust”证书,这应该不会造成任何问题,即使对于较旧的 Java 版本也是如此。

所以要检查的第一件事:再次尝试安装 Saros。您仍然收到证书错误吗?

如果由于某种原因问题仍然存在,您有两个选择:

  1. 简单方法:不是从更新站点安装 Saros,而是作为一个dropin 而不是使用更新站点。项目网站上有一个操作方法:Instructions for installing Saros as a dropin

  2. 不确定的方法:您可以尝试找出哪个证书颁发机构 (CA) 颁发了转发到的 HTTPS 服务器所使用的证书。 (例如,将错误消息中的一个 HTTP URL 键入您的 Web 浏览器,等到您被重定向到 HTTPS URL,然后检查证书信息——通常是地址栏旁边的绿色锁图标。)如果您有CA 的名称,可能有网站解释如何将其根证书添加到您的 Java 设置(类似于 this one ,它为“让我们加密”案例提供了一些提示)。

更新(2017-03-31):

我从其他人那里听说,Sourceforge 的问题对他们来说仍然存在。作为直接安装 Saros 的替代方法(上面的选项 1),您还可以使用我们托管在 Heroku 上的辅助 Eclipse 更新站点:https://get-saros.herokuapp.com/eclipse

关于java - 在 Eclipse Neon "An error occurred while collecting items to be installed"中安装 Saros,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42191201/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com