How to set grails proxy have error & grails install

377 Views Asked by At

i want to know error grails can you help me

|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

There are 1 best solutions below

2
Daniel On

In Grails 2, the proxy is configured and set in a file that (I believe) is in your ~/.grails directory. There are command-line arguments for setting that documented in the grails documentation here: https://grails.github.io/grails2-doc/2.4.2/ref/Command%20Line/add-proxy.html

In general you would do something like

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

And then activate it like

grails set-proxy client