首页 > 解决方案 > 如何设置 grails 代理有错误 & grails install

问题描述

我想知道错误grails你能帮我吗

|Loading Grails 2.4.0
|Configuring classpath
Error |
Resolve error obtaining dependencies: Failed to read artifact descriptor for xalan:serializer:jar:2.7.1 (Use --stacktrace to see the full trace)
Error |
Required Grails build dependencies were not found. This is normally due to internet connectivity issues (such as a misconfigured proxy) or missing repositories in grails-app/conf/BuildConfig.groovy. Please verify your configuration to continue.

Process finished with exit code 1

标签: grailsgrails-plugingrails-domain-classgrails-controller

解决方案


在 Grails 2 中,代理被配置和设置在一个文件中(我相信)在你的 ~/.grails 目录中。此处的 grails 文档中记录了用于设置的命令行参数:https ://grails.github.io/grails2-doc/2.4.2/ref/Command%20Line/add-proxy.html

一般来说,你会做类似的事情

grails add-proxy client --host=proxy-server --port=4300 --username=guest --password=guest

然后像这样激活它

grails set-proxy client

推荐阅读