How to get more info on Grails app stuck in Configuring classpath stage?
Asked Answered
H

3

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
Heckle answered 22/3, 2012 at 15:57 Comment(1)
found it I set the log parameter in BuildConfig.groovy to verboseHeckle
H
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'
...
Heckle answered 23/3, 2012 at 13:57 Comment(3)
Where does that log output go?Billfish
Console unless log is redirected to some fileHeckle
Figured it out -- I didn't have an error, it was just taking a really long time to repopulate my deleted Ivy cache. Thanks!Billfish
S
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.

Strawflower answered 17/2, 2015 at 9:2 Comment(0)
B
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.

Billfish answered 6/12, 2012 at 21:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.