在将spock grails插件添加到项目后尝试与eclipse集成时出错

时间:2013-03-01 20:08:14

标签: grails grails-plugin

为Grails 2.0.4项目添加到BuildConfig之后:

test ":spock:0.7" 

在插件文档的插件{}部分我想更新我的eclipse项目,包括spock库来创建测试,所以我跑了

grails integrate-with --eclipse

但迎接了这个

| Error Error executing script IntegrateWith: The Spock compiler plugin could not run because Spock 0.5.0-groovy-1.7 is not compatible with Groovy 1.8.6. For more information, see http://versioninfo.spockframework.org
Spock location: file:/C:/Users/fgg/.grails/ivy-cache/org.spockframework/spock-core/jars/spock-core-0.5-groovy-1.7.jar
Groovy location: file:/C:/tools/grails-2.0.4/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-1.8.6.jar (Use --stacktrace to see the full trace)

1 个答案:

答案 0 :(得分:1)

我最终运行它来修复它:

grails clean

然后跑了这个:

grails --refresh-dependencies integrate-with --eclipse

得到了这个结果:

| Loading Grails 2.0.4
| Created Eclipse project files..