我的 Eclipse(2020-03 - 在 Windows 10 上运行)运行良好。然后我的公司突然更新了政策,但毫无效果。 我不断得到:
Unable to read repository at https://download.eclipse.org/technology/epp/packages/2023-03/202303091200/content.xml.
javax.net.ssl.SSLHandshakeException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)
一切都不起作用了。构建、编译,甚至 MarketPlace 都会返回此错误。 我尝试了很多像这样的解决方案,但没有一个有效。 手动添加证书,更新策略,禁用公司防火墙(有自己公司的支持)。 编译时,我什至手动将每个maven依赖项和pom下载到正确的位置,这样我就可以“绕过”dep下载,但没有用。
我设法用以下答案解决它。我把它留在这里是为了将来帮助像我这样有需要的人。 (我花了3天时间试图解决这个问题)。