由于项目未编译,无法解析Grails依赖项

时间:2013-11-06 16:24:10

标签: grails groovy upgrade

我正在将grails项目从1.3.6升级到2.2.4。我目前遇到无法解决依赖关系的问题。 Groovy Grails工具套件中的问题选项卡显示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日志记录级别转为调试,但这没什么帮助。

0 个答案:

没有答案