【问题标题】:Installing Grails Spock Plugin in 2.0.0M1在 2.0.0M1 中安装 Grails Spock 插件
【发布时间】:2011-10-21 22:25:39
【问题描述】:

我正在尝试使用 Grails 2.0.0M1 和 Springsource Tool Suite 2.7.1,但我在安装 spock 插件时遇到问题。

当我运行“grails install-plugin spock 0.6-groovy-1.8-SNAPSHOT”时,我得到:

| Downloading: spock-0.6-groovy-1.8-SNAPSHOT.pom
:: problems summary ::
:::: ERRORS
        grailsCentral: bad organisation found in http://svn.codehaus.org/grails-plugins/grails-spock/tags/RELEASE_0_6-groovy-1_8-SNAPSHOT/spock-0.6-groovy-1.8-SNAPSHOT.pom: expected='org.grails.plugins' found='org.spockframework'
| Error resolving plugin [name:spock, group:org.grails.plugins, version:0.6-groovy-1.8-SNAPSHOT]. Plugin not found.
| Error Plugin not found for name [spock] and version [0.6-groovy-1.8-SNAPSHOT]

知道如何解决这个问题吗?

【问题讨论】:

    标签: grails grails-plugin spock


    【解决方案1】:

    遇到了同样的问题。这是今天早些时候修复的。试试grails install-plugin spock 0.6-SNAPSHOT(不带“groovy-1.8”)。

    见: http://jira.grails.org/browse/GPSPOCK-5?focusedCommentId=65695&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-65695

    【讨论】:

      【解决方案2】:

      Grails 1.4/2.0 需要 Groovy 1.8,但是他们在将 Spock 版本支持到 Maven Central 时遇到了一些问题。 here 描述的方法对我们来说在 Grails 1.4.M1 上运行良好。这有点麻烦,因为它需要手动构建 JAR 并将其安装到本地 Maven 存储库中(因此需要在每台机器上执行),但您也可以尝试将其部署到本地 Nexus/Artifactory。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-06-24
        • 1970-01-01
        • 2015-10-06
        • 2011-10-12
        • 2015-04-27
        • 1970-01-01
        相关资源
        最近更新 更多