Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails hangs on command line

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

like image 907
amit modi Avatar asked Feb 15 '12 00:02

amit modi


4 Answers

Cleaning .ivy cache helps

$HOME/.grails/ivy-cache

like image 181
amit modi Avatar answered Oct 05 '22 03:10

amit modi


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.

like image 40
sikrip Avatar answered Oct 05 '22 05:10

sikrip


Try to add --offline to te command

like image 22
Test Avatar answered Oct 05 '22 04:10

Test


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

like image 23
prayagupa Avatar answered Oct 05 '22 05:10

prayagupa