Grails Agent proxy settings deployment Grails encounters error Resolve Error obtaining dependencies: Error, and workaround

Source: Internet
Author: User
Tags grails

Recently using Grails, beginning with the 3.0.2 version, has been wrapped nullpointer error, later used in 2.5.0 version, you can create the project, but after entering the project catalog, then execute the grails program, error, the steps are as follows:

1. Grails Create-app HelloWorld//Success

2. CD HelloWorld

3. Grails//error, information is as follows

| Configuring Classpath

| Error Resolve error obtaining dependencies:could not transfer artifact org.grails.plugins:tomcat:zip:7.0.55.2 From/to grailscentral (https://repo.grails.org/grails/plugins): Connect to repo.grails.org:443 timed off (use-- StackTrace to see the full trace)

The literal view is not connected, and then try to modify the proxy address (my company needs to use an agent to access the extranet), or failure.

It was later discovered that it was necessary to set up Grails's proxy line, as follows:

1. Setting commands

Grails add-proxy myproxy--host=<server>--port=<port>--username=<username>--password=< Password>grails set-proxy myproxy

2. Open ~/.grails/proxysettings.groovy, found the content as follows (WIN7 platform error, Mac platform Normal, you can notice):

myproxy=[' Http.proxyhost ': true, ' http.proxyport ': true, ' http.proxyuser ': ', ' http.proxypassword ': ', ' Http.nonproxyhosts ': ']

Currentproxy= ' myproxy '

Then manually modify the host and port, and then perform grails, successfully.

Grails Agent proxy settings deployment Grails encounters error Resolve Error obtaining dependencies: Error, and workaround

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.