Grails:找不到名称[acegi]和版本[0.5.2]的插件

时间:2016-02-11 11:00:36

标签: grails plugins groovy grails-plugin

我正在使用grails 1.3.7,我尝试使用以下命令安装acegi插件以获取上述错误

install-plugin acegi 0.5.2 

BuildConfig.groovy:

grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
//grails.project.war.file = "target/${appName}-${appVersion}.war"
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 {
        grailsPlugins()
        grailsHome()
        grailsCentral()

        // uncomment the below to enable remote dependency resolution
        // from public Maven repositories
        mavenLocal()
        mavenCentral()
        mavenRepo "http://snapshots.repository.codehaus.org"
        mavenRepo "http://repository.codehaus.org"
        mavenRepo "http://download.java.net/maven/2/"
        mavenRepo "http://repository.jboss.com/maven2/"
    }
    dependencies {
        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.

        // runtime 'mysql:mysql-connector-java:5.1.13'
    }
}

在我的BuildConfig.groovy中,我没有评论maven repo来解决插件,但它仍然没有任何区别。

有没有办法用上面的命令制作安装acegi插件。

1 个答案:

答案 0 :(得分:0)

您可以尝试将这两个添加到存储库

repositories {
  ....
  mavenRepo "http://repo.grails.org/grails/core"
  mavenRepo "http://repo.grails.org/grails/plugins"
}