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

amit modi
  • 1,098
  • 1
  • 11
  • 26
  • 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. – Sudhir N Feb 15 '12 at 03:37
  • @Sudhir: No .. the problem persists and it hangs on create-app command now or any other command – amit modi Feb 16 '12 at 23:15

4 Answers4

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.

sikrip
  • 671
  • 8
  • 10
6

Cleaning .ivy cache helps

$HOME/.grails/ivy-cache

amit modi
  • 1,098
  • 1
  • 11
  • 26
  • 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) – peterp May 14 '13 at 15:55
  • 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. – Doron Manor May 27 '15 at 23:36
4

Try to add --offline to te command

Test
  • 41
  • 1
1

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

prayagupa
  • 30,204
  • 14
  • 155
  • 192