我是莺的新手,目前正在尝试学习一些基本知识。
跑步
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 env变量,解决了问题。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句