试图连接到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-ceclipse网站列出了其插件的更新网站为:
https://cucumber.io/cucumber-eclipse/update-site
但是,当在浏览器中导航到该URL时,它将其重定向到:
http://cucumber.github.io/cucumber-eclipse/update-site/
请注意添加的" .github "。
分辨率
如果在Eclipse插件中遇到此问题,请在浏览器中导航到更新站点URL,然后在加载页面后从那里复制URL。这应该为您提供真实的更新站点URL,然后可以作为Eclipse中的可用站点添加。
http://cucumber.github.io/cucumber-eclipse/update-site/
使用以上链接来自Eclipse中的"安装新软件"
这对我有用
http://cucumber.github.io/cucumber-eclipse/update-site/
使用Eclipse中Install new Software
的上述链接