18

I am running a Grails application and it just gets stuck in the Configuring class path stage, Is there any way to get more info on whats going on? I tried the verboseCompile switch to no avail.

grails run-app --verboseCompile  
| Configuring classpath
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
Usman Ismail
  • 17,999
  • 14
  • 83
  • 165

3 Answers3

22

Look for the BuildConfig.groovy file here (/AppName/grails-app/conf/BuildConfig.groovy) and then find the log parameter and set it to verbose.

grails.project.dependency.resolution = {
...
log "verbose" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
...
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
Usman Ismail
  • 17,999
  • 14
  • 83
  • 165
3

If you are not seeing any output after setting Log level to verbose, it is probably because your grails.project.dependency.resolver parameter is still set to maven. Set it to ivy and check again.

Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
acmoune
  • 2,981
  • 3
  • 24
  • 41
2

Even if nothing's actually wrong, with a large project it can take a long time to download all your dependencies (especially if you clear your Ivy cache as per this answer).

Observe your Ivy cache directory (e.g. with watch ls ~/.grails/ivy-cache); if things are working correctly, you should see dependencies gradually being downloaded/installed there.

If things aren't working correctly (e.g. nothing's appearing there, or a few things appear and then the downloads seem to stop) Usman's verbose logging is probably the way to go.

Community
  • 1
  • 1
David Moles
  • 48,006
  • 27
  • 136
  • 235