java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7

后端 未结 14 2121
南方客
南方客 2020-12-28 11:46

I am getting this exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 and java.lang.NoClassDefFoundError: Coul

14条回答
  •  無奈伤痛
    2020-12-28 12:05

    are you using some third party library that brings in org.codehaus.groovy dependencies? If yes, you can try and replace the required groovy dependencies with the most current releases yourself.

    In my case it was the org.liquibase:liquibase-groovy-dsl, so I did this:

        
            org.liquibase
            liquibase-groovy-dsl
            2.1.1
            
                
                    org.codehaus.groovy
                    groovy
                
                
                    org.codehaus.groovy
                    groovy-sql
                
            
        
    
        
            org.codehaus.groovy
            groovy
            3.0.3
        
    
        
            org.codehaus.groovy
            groovy-sql
            3.0.3
        
    

提交回复
热议问题