使用 warbler 使可执行文件 war 无法打开到 repo2.maven.org:80 的 TCP 连接

Failed to open TCP connection to repo2.maven.org:80 while making executable war with warbler

我是 warbler 的新手,目前正在尝试学习一些基本知识。

运行

warble executable war

正在创建一个错误

Downloading jetty-runner-9.2.9.v20150224.jar
warble aborted!
Errno::ETIMEDOUT: Failed to open TCP connection to repo2.maven.org:80 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. -
connect(2) for "repo2.maven.org" port 80) - http://repo2.maven.org/maven2/org/eclipse/jetty/jetty-runner/9.2.9.v20150224/jetty-runner-9.2.9.v20150224.jar
C:/Ruby23-x64/bin/warble:22:in `load'
C:/Ruby23-x64/bin/warble:22:in `<main>'

我知道原因 - 我们的公司网络存在一些安全限制。

我假设我需要使用镜像,但我不知道我需要更改 warbler 配置的哪些内容和位置。

问题已通过将我的本地镜像 link 添加到 MAVEN_REPO 环境变量来解决。