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

后端 未结 3 2031
误落风尘
误落风尘 2021-02-19 02:32

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 verboseCompi

相关标签:
3条回答
  • 2021-02-19 03:19

    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.

    0 讨论(0)
  • 2021-02-19 03:21

    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'
    ...
    
    0 讨论(0)
  • 2021-02-19 03:24

    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.

    0 讨论(0)
提交回复
热议问题