“Error loading plugin manager: TomcatGrailsPlugin” on Grails 2.3 Database Migration

后端 未结 6 2088
终归单人心
终归单人心 2020-12-13 23:29

I use Grails 2.3 and the Grails database migration plugin (1.3.6).

When I do grails dbm-update I get the following error. How can I solve this error?



        
6条回答
  •  暖寄归人
    2020-12-13 23:55

    This is a super annoying bug. My application depends on running scripts with run-script and I get the same behavior. Here's what I did as a workaround:

    plugins {
        ...
        // grails 2.3.2 and tomcat 7.0.42 cause scripts to not work :( Pass -DnoTomcat=true in the script args to fix this
        if (System.getProperty("noTomcat") == null) {
            build ":tomcat:7.0.42"
        }
    }
    

    Then when running your script:

     grails -DnoTomcat=true run-script scripts/MyScript.groovy
    

    Annoying for sure, but at least you can use all the other latest features while awaiting a fix.

提交回复
热议问题