未找到Grails 1.3.7插件

时间:2015-08-07 14:22:56

标签: grails

我见过一些类似但有解决方案似乎对我不起作用。

尝试运行旧的Grails 1.3.7,但永远无法找到插件。如果我创建一个新的Grails 1.3.7并尝试安装插件则失败。 Grails 2.4.3工作正常。

解析插件acegi。请等一下......

:: problems summary ::
:::: WARNINGS
        module not found: org.grails.plugins#acegi;0.5.3.2

    ==== grailsPlugins: tried

      -- artifact org.grails.plugins#acegi;0.5.3.2!acegi.zip:

      /Users/toddcrone/work/twcrone/grails-1.3.7-test/lib/acegi-0.5.3.2.zip

    ==== grailsHome: tried

      /Users/toddcrone/.gvm/grails/1.3.7/lib/acegi-0.5.3.2.xml

      -- artifact org.grails.plugins#acegi;0.5.3.2!acegi.zip:

      /Users/toddcrone/.gvm/grails/1.3.7/lib/acegi-0.5.3.2.zip

    ==== grailsHome: tried

      /Users/toddcrone/.gvm/grails/1.3.7/dist/acegi-0.5.3.2.xml

      -- artifact org.grails.plugins#acegi;0.5.3.2!acegi.zip:

      /Users/toddcrone/.gvm/grails/1.3.7/dist/acegi-0.5.3.2.zip

    ==== grailsHome: tried

      -- artifact org.grails.plugins#acegi;0.5.3.2!acegi.zip:

      /Users/toddcrone/.gvm/grails/1.3.7/plugins/grails-acegi-0.5.3.2.zip

    ==== http://grails.org/plugins: tried

      -- artifact org.grails.plugins#acegi;0.5.3.2!acegi.zip:

      http://grails.org/plugins/grails-acegi/tags/RELEASE_0_5_3_2/grails-acegi-0.5.3.2.zip

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/acegi/0.5.3.2/acegi-0.5.3.2.pom

      -- artifact org.grails.plugins#acegi;0.5.3.2!acegi.zip:

      http://repo1.maven.org/maven2/org/grails/plugins/acegi/0.5.3.2/acegi-0.5.3.2.zip

        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: org.grails.plugins#acegi;0.5.3.2: not found

        ::::::::::::::::::::::::::::::::::::::::::::::


Error resolving plugin [name:acegi, group:org.grails.plugins, version:0.5.3.2].
Plugin not found for name [acegi] and version [0.5.3.2]

1 个答案:

答案 0 :(得分:6)

Grails 1.3.7的插件已移至http://repo.grails.org/grails/repo/。此回购不在BuildConfig.groovy的默认repositories列表中。

在BuildConfig.groovy中:

repositories {
    grailsPlugins()
    grailsHome()
    grailsCentral()

    // add this
    mavenRepo "http://repo.grails.org/grails/repo/"
}