grails 无法从 Maven 存储库下载 jar
我正在尝试在 centoOS 服务器上的 grails 项目上执行 grails clean ...它开始下载依赖项,但卡在特定的 jar 上,如果我尝试直接从浏览器下载 jar,它可以工作,但当我执行 grails clean 时会挂起
[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 ...
I'm trying to do grails clean on my grails project on centoOS server ... It starts downloading dependencies but gets stuck on a particular jar, if I try downloading the jar directly from the browser it working but hangs when I do grails clean
[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 ...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您处于需要代理来访问外部资源的网络环境中,
您可以使用 add-proxy 添加 Grails 命令使用的代理配置
http://grails.org/doc/latest/ref/Command%20Line/add-proxy.html
maybe you are in a network environment requiring a proxy to access external resources
you can add proxy configurations being used by Grails commands using add-proxy
http://grails.org/doc/latest/ref/Command%20Line/add-proxy.html