【问题标题】:Error when attempting to integrate with eclipse after adding spock grails plugin to project将 spock grails 插件添加到项目后尝试与 eclipse 集成时出错
【发布时间】:2013-03-01 20:08:13
【问题描述】:

为 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)

【问题讨论】:

    标签: grails grails-plugin


    【解决方案1】:

    我最终运行它来修复它:

    grails clean
    

    然后运行这个:

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

    得到这个结果:

    | Loading Grails 2.0.4
    | Created Eclipse project files..
    

    【讨论】:

      猜你喜欢
      • 2012-01-01
      • 2015-11-02
      • 2017-05-04
      • 2019-12-09
      • 1970-01-01
      • 1970-01-01
      • 2019-03-06
      • 2016-12-21
      • 2020-05-19
      相关资源
      最近更新 更多