简体   繁体   English

在 maven/tycho 构建的某些网络条件下无法访问 P2 更新站点

[英]P2 Update Site not reachable under some network condition from maven/tycho build

We are using maven / tycho for our build.我们正在使用maven / tycho进行构建。

The target platform can be resolved just fine if I am not in my company's VPN.如果我不在公司的VPN中,目标平台可以很好地解决。 If VPN is on, then one repository cannot be resolved and the build shows:如果 VPN 已打开,则无法解析一个存储库,并且构建显示:

[ERROR] Failed to resolve target definition <my-target-location>: Failed to load p2 metadata repository from location https://<some-p2-repo>: Unable to read repository at https://<some-p2-repo>/content.xml. Connection reset

First I thought that the repository may not be reachable from some IP addresses, but with a webbrowser I am able to access /content.jar (content.xml is missing, but as far as I understand this is okay if content.jar is there)首先,我认为可能无法从某些 IP 地址访问存储库,但使用网络浏览器我可以访问 /content.jar (缺少 content.xml,但据我了解,如果 content.jar 存在,这没关系)

I could fix this by upgrading from Java version 11.0.9 to 11.0.15.我可以通过从 Java 版本 11.0.9 升级到 11.0.15 来解决这个问题。 Maybe, there was some SSL related limitation in 11.0.9.也许,11.0.9 中存在一些与 SSL 相关的限制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM