2

当尝试连接到 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
4

3 回答 3

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 中的可用站点。

于 2017-05-01T21:45:38.037 回答
1

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

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

于 2020-03-12T13:16:47.977 回答
0

这对我有用

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

Install new Software在eclipse中使用上面的链接

于 2020-05-09T20:23:13.557 回答