2011-04-14 96 views
4

我正在尝试在我的grails项目上对centoOS服务器执行grails clean ...它开始下载依赖关系,但是如果我尝试直接从该jar下载该jar,当我这样做的Grails干净它的工作,但在浏览器挂起grails无法从maven repo下载jar


[root]# /root/grails-1.3.4/bin/grails clean 
Welcome to Grails 1.3.4 - http://grails.org/ 
Licensed under Apache Standard License 2.0 
Grails home is set to: /root/grails-1.3.4 

Base Directory: /root/cooldealsnew 
Resolving dependencies... 
Dependencies resolved in 1435ms. 
Running script /root/grails-1.3.4/scripts/Clean.groovy 
Environment set to development 
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar ... 

回答

1

也许你是在网络环境需要代理服务器访问外部资源

您可以添加正在使用的Grails的代理配置命令中使用添加 - 代理

http://grails.org/doc/latest/ref/Command%20Line/add-proxy.html

+0

它只是这个jar所有其他的jar从maven repo下载....我在CentOS服务器上这样做,所以没有浏览器。 – 2011-04-15 11:02:31

+0

谢谢!!!!!!!!!的xD – ricardogobbo 2012-01-17 17:00:46