每次尝试创建Grails项目时,都会收到以下错误消息。我可以从终端创建项目,但不能从IDE创建项目。我正在使用GGTS,我是新来的Grails。命令以异常终止
Command terminated with an exception: java.lang.Exception (see details for partial output) Command: GrailsCommand(P/BookSolution> compile --non-interactive --refresh-dependencies) ---- System.out ---- Loading Grails 2.3.8 . |Environment set to development .......... |Compiling 78 source files .Error | Compilation error: startup failed: C:\grails\BookSolution\target\work\plugins\database-migration-1.4.0\grails-app\controllers\grails\plugin\databasemigration\DbdocController.groovy: -1: Repetitive method name/signature for method 'java.lang.Object withFormat(groovy.lang.Closure)' in class 'grails.plugin.databasemigration.DbdocController'. @ line -1, column -1. C:\grails\BookSolution\target\work\plugins\database-migration-1.4.0\grails-app\controllers\grails\plugin\databasemigration\DbdocController.groovy: -1: Repetitive method name/signature for method 'java.lang.Object withFormat(groovy.lang.Closure)' in class 'grails.plugin.databasemigration.DbdocController'. @ line -1, column -1. 2 errors Error | org.codehaus.groovy.grails.cli.ScriptExitException Error | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) Error | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) Error | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) Error | at java.lang.reflect.Constructor.newInstance(Constructor.java:408) ... 68 more ------System.err:-----------
错误与数据库迁移-1.4.0有关 - 我可以确认是grails 2.4的一部分,在IDE中,此插件默认添加到BuildConfig中,至今没有给我任何问题...尝试将其注释掉?刷新依赖? – Vahid
我不认为这个错误真的与数据库迁移有关。我预计所有控制器都会出现问题。请参阅下面的答案。 –
谢谢杰夫 - 甚至没有下降1.8路线:) – Vahid