问题
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