当收到“无法读取存储库”ProvisionException 错误时,如何连接到 Eclipse 中的更新站点?

问题描述 投票:0回答:4

当尝试连接到 Eclipse 中的更新站点以安装 Cucumber-Eclipse 插件时,我收到以下错误:

Unable to read repository at http://cucumber.io/cucumber-eclipse/update-site/content.xml.
    Unable to read repository at http://cucumber.io/cucumber-eclipse/update-site/content.xml.
    sun.security.validator.ValidatorException: PKIX path building failed: 
   sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested
   target
java eclipse eclipse-plugin certificate pkix
4个回答
2
投票

本例中的问题最初具有误导性,因为 SunCertPathBuilderException 的所有其他答案都与 java cacerts 文件中缺少证书有关。

这里其实是URL重定向导致的。 Cucumber-Eclipse 网站列出了其插件的更新站点:

https://cucumber.io/cucumber-eclipse/update-site

但是,当在浏览器中导航到该 URL 时,它会重定向到:

http://cucumber.github.io/cucumber-eclipse/update-site/

注意添加的“.github”。

分辨率

如果 Eclipse 插件遇到此问题,请在浏览器中导航到更新站点 URL,并在页面加载后从那里复制 URL。这将为您提供真正的更新站点 URL,然后可以将其添加为 Eclipse 中的可用站点。


1
投票

http://cucumber.github.io/cucumber-eclipse/update-site/

在 Eclipse 中使用“安装新软件”中的上述链接


0
投票

这对我有用

http://cucumber.github.io/cucumber-eclipse/update-site/

在 Eclipse 中使用

Install new Software
中的上述链接


0
投票

您可以使用此网址安装 Cucumber 插件http://rlogiacco.github.io/Natural

© www.soinside.com 2019 - 2024. All rights reserved.