0

我正在将 grails 项目从 1.3.6 升级到 2.2.4。我目前遇到无法解决依赖关系的问题。Groovy Grails Tool Suite 中的问题选项卡显示The type groovy.lang.GroovyObject cannot be resolved....

当我运行 grails refresh-dependencies 时,它说依赖项已刷新。但是,当我右键单击项目并选择Grails Tools -> Refresh dependencies时,该过程失败并显示以下内容

 Loading Grails 2.2.4
| Configuring classpath.
| Environment set to development.....
| Compiling 600 source files
| Warning The [generatePublishingEmail] action accepts a parameter of type [java.util.List] which has not been marked with @Validateable.  Data binding will still be applied to this command object but the instance will not be validateable.
def generatePublishingEmail(def subject, def releaseNumber, List components, def notes, def publishType, String email, def productName)
^
| Compiling 600 source files.
| Error Fatal error during compilation org.apache.tools.ant.BuildException: Compilation Failed (Use --stacktrace to see the full trace)
| Error org.codehaus.groovy.grails.cli.ScriptExitException
...

为了确保可以解决 groovy,我在 grails 2.2.4 中创建了一个示例项目。这编译得很好并解决了依赖关系,没有任何问题。此外,我将 BuildConfig.groovy 日志记录级别转为调试,但这并没有提供什么帮助。

4

0 回答 0