惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
IT之家
IT之家
V
Visual Studio Blog
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 聂微东
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
大猫的无限游戏
大猫的无限游戏
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
D
Docker
MyScale Blog
MyScale Blog
小众软件
小众软件
云风的 BLOG
云风的 BLOG
美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 【当耐特】

博客园 - xinghebuluo

在云主机上部署OpenClaw并集成微信插件:从零到上手完整指南 mongodb 数据块迁移的源码分析 mongodb 数据块的迁移流程介绍 Guava Cache源码浅析 mongodb在双活(主备)机房的部署方案和切换方案设计 mongodb oplog日志详解和格式分析 Redis之ziplist源码分析 Redis之quicklist源码分析 mongodb中出现_id字段重复记录的排查笔记 Redis LRU源码分析 JAVA中int转string及String.valueOf()的使用 String,StringBuilder和StringBuffer的特点和使用场景 ReentrantLock的原理解析 mongodb的TTL索引介绍(超时索引) JBoss AS7(Application Server 7)的Standalone模式和Domain模式 mongodb 配置均衡器的运行窗口 mongodb添加延时节点 AFNetworking 遇到错误 Code=-1016 "Request failed: unacceptable content-type: text/plain" 使用cocoa捕获dock栏中的“退出”事件,解决qt开发的应用程序退出异常的问题
【Grails 代理Proxy设置】部署Grails遇到Error Resolve error...
xinghebuluo · 2015-07-01 · via 博客园 - xinghebuluo

最近在使用Grails,一开始使用3.0.2版本,一直包nullpointer错误,后来使用了2.5.0版本,可以创建工程,但是在进入到工程目录后,再执行grails程序,报错了,步骤如下:

1. grails create-app helloworld // 成功

2. cd helloworld

3. grails        // 出错,信息如下

| 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 out (Use --stacktrace to see the full trace)

字面看是连接不通,后来尝试修改代理地址(我公司需要用代理才可以访问外网),还是失败。

后来发现是需要设置grails的代理才行,如下:

1.  设置命令

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

2. 打开~/.grails/ProxySettings.groovy,发现内容如下(WIN7平台出错,mac平台正常,大家可以注意一下):

myproxy=['http.proxyHost':true, 'http.proxyPort':true, 'http.proxyUser':'', 'http.proxyPassword':'', 'http.nonProxyHosts':'']

currentProxy='myproxy'

然后手动修改了host和port,再执行 grails,成功了。