gpt4 book ai didi

grails - 将Spock Grails插件添加到项目后尝试与Eclipse集成时出错

转载 作者:行者123 更新时间:2023-12-02 15:33:50 25 4
gpt4 key购买 nike

添加到BuildConfig for Grails 2.0.4项目后:

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)

最佳答案

我最终运行它来修复它:

grails clean

然后运行:
grails --refresh-dependencies integrate-with --eclipse

得到了这个结果:
| Loading Grails 2.0.4
| Created Eclipse project files..

关于grails - 将Spock Grails插件添加到项目后尝试与Eclipse集成时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15165999/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com