Как настроить Grails Proxy при ошибке и установке Grails - PullRequest
0 голосов
/ 16 апреля 2020

Я хочу знать, ошибки Грааля, вы можете мне помочь

|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

1 Ответ

0 голосов
/ 16 апреля 2020

В 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
...