尝试连接到 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
这种情况下的问题起初具有误导性,因为 SunCertPathBuilderException 的所有其他答案都与 java cacerts 文件中缺少证书有关。
这里实际上是由 URL 重定向引起的。Cucumber-Eclipse 网站将其插件的更新站点列为:
但是,当在浏览器中导航到该 URL 时,它会重定向到:
注意添加的“ .github ”。
如果 Eclipse 插件遇到此问题,请在浏览器中导航到更新站点 URL,并在页面加载后从那里复制 URL。这应该为您提供真正的更新站点 URL,然后可以将其添加为 Eclipse 中的可用站点。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句