Grails hangs on command line
Asked Answered
A

4

7

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

Anthropology answered 15/2, 2012 at 0:1 Comment(2)
so if you remove the mysql connector dependency - does it works fine ! Just making sure that it's the problem with mysql connector dep. and not some thing else.Javierjavler
@Sudhir: No .. the problem persists and it hangs on create-app command now or any other commandAnthropology
A
6

Cleaning .ivy cache helps

$HOME/.grails/ivy-cache

Anthropology answered 16/2, 2012 at 23:54 Comment(2)
Did not work for me... setting the log level to verbose (as proposed in sikrip's answer) pointed me to the actual problem, though. (Repository did not repsond)Gallice
As it turns out (and also mentioned by others) one of the repositories was not responding. Once you wipe out the ivy-cache and have no connection to the repository you are screwed cause you can no longer use offline.Agateware
M
6

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.

Messner answered 22/10, 2012 at 18:25 Comment(2)
Where does that log output go?Cauldron
Never mind, found this question/answer: #9826483Cauldron
Y
4

Try to add --offline to te command

Yseulta answered 7/3, 2012 at 17:25 Comment(0)
B
1

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

Benghazi answered 29/4, 2014 at 16:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.