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

标签 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插件。

最佳答案

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

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

关于grails - Grails:找不到名称[acegi]和版本[0.5.2]的插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35337507/

相关文章:

Maven 更新 pom 属性

groovy - vert.x:向所有路由注册failureHandler

Tomcat、Groovy 和干净的 url

grails - 更改操作名称时,请求的资源不可用

spring - Grails/Spring REQUIRES_NEW回滚外部事务

grails - XmlSlurper的Grails/Groovy问题..帮助

plugins - Twitter 现在在埃及被屏蔽,我有域名,我想绕过它,有什么办法吗?

c# - 使用 IoC 解析动态加载类型

types - Groovy中单个变量的两个类型声明?

tomcat - 通过LDAP SSL的Active Directory-开发环境与Tomcat-Grails Web应用