我是 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>'
我知道原因 - 我们的公司网络存在一些安全限制。
我认为我需要使用镜子,但我不知道我需要更改鸣鸟配置的内容和位置。
最佳答案
通过将本地镜像链接添加到 MAVEN_REPO 环境变量解决了问题。
关于ruby - 无法打开与 repo2.maven.org 的 TCP 连接 :80 while making executable war with warbler,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57114927/