grails - 如何设置 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
解决方案
在 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
推荐阅读
- twitter-bootstrap - 如何去除这些卡片周围的填充和边距?
- javascript - 将边框半径赋予 svg 并更改字体大小
- apache-kafka - Kafka 删除段时出错 -> 进程无法访问该文件,因为它正被另一个进程使用
- javascript - 将两个输入字段加在一起
- yocto - Pulseaudio 没有自动启动
- python - 使用 Python 在数百万个文档中查找最常见的句子/短语
- dynamics-crm - 更新现有记录,而不是在 MS CRM 中创建同一实体的新记录
- powershell - Connect-PnpOnline:建立连接时出错
- python - Jenkins 在作业类型上使用组件相同的站点执行行为
- ruby-on-rails-5 - 如何在 react-rails 中调试 ExecJS 错误