Maven Eclipse插件不适用于VPN

时间:2018-02-13 14:23:05

标签: java eclipse maven eclipse-plugin vpn

我正在尝试运行Maven构建或通过Maven插件在Eclipse中安装的命令,我的环境是VPN。如果我这样做,我会收到以下错误:

[ERROR] Failed to execute goal on project my-project: Could not resolve dependencies for project my.project.package:my:project:war:0.0.1-SNAPSHOT: Failed to collect dependencies at <some SQL library>:jar:xx.x: Failed to read artifact descriptor for <some SQL library>:jar:xx.x: Could not transfer artifact <some SQL library>:jar:xx.x from/to central ( **https**://repo.maven.apache.org/maven2): Remote host closed connection during handshake: SSL peer shut down incorrectly -> [Help 1]

对于那些SQL库(DB2),由于我无法解析依赖项,我已经手动将它们复制到另一个项目的各自的.m2 / ...文件夹中。

奇怪的是,当我离开VPN时,maven build / install工作就好了!

如果问题与Maven资源库中缺少这些DB2库的可用性有关,有没有办法阻止Maven尝试下载它们?

0 个答案:

没有答案