缺少依赖项org / codehaus / groovy / grails / commons / ApplicationAttributes

时间:2018-08-02 04:34:47

标签: grails

我收到以下错误。安装grails 3.3.6并尝试迁移2.x应用程序。希望您有任何投入

java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to load class grails.plugin.springsecurity.ui.AbstractS2UiController due to missing dependency org/codehaus/groovy/grails/commons/ApplicationAttributes
    at org.codehaus.groovy.control.CompilationUnit.convertUncaughtExceptionToCompilationError(CompilationUnit.java:1123)
    at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1101)
    at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624)
    at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
    at org.gradle.api.internal.tasks.compile.ApiGroovyCompiler.execute(ApiGroovyCompiler.java:174)
    at org.gradle.api.internal.tasks.compile.ApiGroovyCompiler.execute(ApiGroovyCompiler.java:56)
    at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkerAdapter.execute(AbstractDaemonCompiler.java:73)
    at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkerAdapter.execute(AbstractDaemonCompiler.java:64)
    at org.gradle.workers.internal.WorkerDaemonServer.execute(WorkerDaemonServer.java:29)
    at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerDaemonServer.execute(AbstractDaemonCompiler.java:91)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)

1 个答案:

答案 0 :(得分:1)

该类已移动到grails.core.ApplicationContext。您需要使用最新版本的插件

顺便说一句,请不要创建两个主题,只需更新旧主题即可!