【发布时间】:2019-01-26 02:11:42
【问题描述】:
我无法弄清楚为什么 grails 无法解决依赖关系。
我跑的时候
grails war --stacktrace --verbose
我可以在日志中看到:
...
Server access Error: Connection timed out: connect url=https://repo.grails.org/grails/plugins/org/grails/plugins/tomcat/8.0.33/tomcat-8.0.33.pom
...
但可以在浏览器中打开和下载链接。我认为代理可能会导致它。但是在我设置它之后:
grails add-proxy client --host=<ip> --port=<port>
错误仍然存在。
我正在使用
Grails 2.5.6
Java 1.8
Windows 10
我无法弄清楚依赖解析机制在 Grails 中是如何工作的。 我还尝试在解压缩下载的 zip-archive 后立即运行 Grails 3.3.9。我不是从 Grails 项目文件夹中运行 grails。
我首先看到的是:
| Error Error occurred running Grails CLI: Could not find artifact org.grails:grails-bom:pom:3.3.9 in nexus (http://<ip>:<port>/nexus/content/groups/public) (Use --stacktrace to see the full trace)
它是怎么知道的
http://<ip>:<port>/nexus/content/groups/public
这是来自我的 Maven 的设置。它们有什么关系?
【问题讨论】: