Grails hangs on command line

泄露秘密 提交于 2019-12-09 17:27:38

问题


I just downloaded Grails 2.0.1. Created a new project and then tried adding the mysql connector as per the documentation but Grails hangs at command prompt without any message. I tried to execute in verbose and stacktrace mode but it prints nothing.

I tried cleaning and re-executing but all the grails commands are getting stuck.

They don't print anything beyond "configuring classpath" message .

Please help.

Thanks


回答1:


Cleaning .ivy cache helps

$HOME/.grails/ivy-cache




回答2:


Had the same problem on grails 2.0.4.

The cause was one of the repos not responding and grails waits for it to timeout.

Setting log "verbose" in BuildConfig.groovy helped me find which repository caused the problem.




回答3:


Try to add --offline to te command




回答4:


$ grails clean --offline worked for me, as I was stuck on configuring classpath due to unresolved dependencies.



来源:https://stackoverflow.com/questions/9286072/grails-hangs-on-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!