Grails 2.3.6插件无法找到jcenter?

时间:2014-12-23 11:40:21

标签: maven grails dependency-management jcenter

我有一个带有以下BuildConfig的Grails 2.3.6插件:

grails.project.dependency.resolution = {
    // inherit Grails' default dependencies
    inherits("global") {
        // uncomment to disable ehcache
        // excludes 'ehcache'
    }

    log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'

    repositories {
        grailsCentral()
        jcenter()
        mavenLocal()
        mavenCentral()
        mavenRepo "https://myartifactory01/artifactory/my-snapshots"
    }

    dependencies {
        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
        ...
    }
}

当我运行以下构建调用时:

grails clean package-plugin create-pom fizzbuzz

我明白了:

|Loading Grails 2.3.6
Error |
There was an error loading the BuildConfig: No signature of method: groovy.util.ConfigSlurper$_parse_closure5.jcenter() is applicable for argument types: () values: []
Possible solutions: clone(), getMc(), iterator(), println(), every(), println() (Use --stacktrace to see the full trace)

为什么吗

0 个答案:

没有答案