【问题标题】:How to set grails proxy have error & grails install如何设置 grails 代理有错误 & grails install
【发布时间】:2020-04-16 07:15:39
【问题描述】:

我想知道错误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 grails-plugin grails-domain-class grails-controller


    【解决方案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
    

    【讨论】:

    • 谢谢。对不起,你能帮帮我吗?我如何添加代理,我不知道代理在哪里
    • 您可以使用我在答案中包含的命令添加代理。我不知道你的代理服务器是什么。如果您都不知道,那么您可能根本不需要代理服务器。
    猜你喜欢
    • 1970-01-01
    • 2017-09-25
    • 1970-01-01
    • 1970-01-01
    • 2015-03-06
    • 2013-01-24
    • 1970-01-01
    • 2013-04-09
    • 2015-05-21
    相关资源
    最近更新 更多