Grails 2.2.1和SpringSecurity 1.2.7.3

时间:2015-05-19 11:37:45

标签: grails spring-security

我正在尝试编译使用spring security 1.2.7.3的grails 2.2.1项目。

repositories {

        grailsPlugins()
        grailsHome()
        grailsCentral()
        mavenCentral()
        mavenRepo "http://repository.jboss.org/maven2/"
        mavenRepo "http://repository.codehaus.org"
        mavenRepo "http://repo.grails.org/grails/repo"
        mavenRepo "https://repo.grails.org/grails/plugins"

    }

    plugins {
        compile ":hibernate:$grailsVersion"
        compile ":tomcat:$grailsVersion"
        compile ':spring-security-core:1.2.7.3'
        compile ':codenarc:0.18.1'
        compile ':functional-test:1.2.7'
        compile ':selenium:0.8'
        compile ':selenium-rc:1.0.2'
        test ':code-coverage:1.2.5'
}

这是我的BuildConfig.groovy文件。

现在,当我运行grails clean时,它开始按预期下载插件,但它被卡在这里:

CLIENT ERROR: Not Found url=http://repository.jboss.org/maven2/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.pom
    tried http://repository.jboss.org/maven2/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.zip CLIENT ERROR: Not Found url=http://repository.jboss.org/maven2/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.zip http://repository.jboss.org/maven2/: no ivy file nor artifact found for org.grails.plugins#spring-security-core;1.2.7.3
    tried http://repository.codehaus.org/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.pom
    tried http://repository.codehaus.org/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.zip http://repository.codehaus.org: no ivy file nor artifact found for org.grails.plugins#spring-security-core;1.2.7.3
    tried http://repo.grails.org/grails/repo/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.pom http://repo.grails.org/grails/repo: found md file for org.grails.plugins#spring-security-core;1.2.7.3
    => http://repo.grails.org/grails/repo/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.pom (1.2.7.3) downloading http://repo.grails.org/grails/repo/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.pom ...   http://repo.grails.org/grails/repo: downloading http://repo.grails.org/grails/repo/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.pom | Downloading: spring-security-core-1.2.7.3.pom   http://repo.grails.org/grails/repo: downloading http://repo.grails.org/grails/repo/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.pom.sha1 | Downloading: spring-security-core-1.2.7.3.pom.sha1 sha1 OK for http://repo.grails.org/grails/repo/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.pom [SUCCESSFUL ] org.grails.plugins#spring-security-core;1.2.7.3!spring-security-core.pom(pom.original) (527ms)
    tried /home/user/Projects/ellucian_code/banner_student_faculty_grade_entry_app/lib/spring-security-core-1.2.7.3.zip
    tried /home/user/.gvm/grails/2.2.1/lib/org.grails.plugins/spring-security-core/jars/spring-security-core-1.2.7.3.zip
    tried /home/user/.gvm/grails/2.2.1/lib/org.grails.plugins/spring-security-core/bundles/spring-security-core-1.2.7.3.zip
    tried /home/user/.gvm/grails/2.2.1/src/libs/spring-security-core-1.2.7.3.zip
    tried /home/user/.gvm/grails/2.2.1/dist/spring-security-core-1.2.7.3.zip
    tried /home/user/.grails/2.2.1/cached-installed-plugins/spring-security-core-1.2.7.3.zip
    tried /home/user/.gvm/grails/2.2.1/plugins/spring-security-core-1.2.7.3.zip
    tried http://grails.org/plugins/grails-spring-security-core/tags/RELEASE_1.2.7.3/grails-spring-security-core-1.2.7.3.zip
    tried http://repo1.maven.org/maven2/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.zip
    tried http://repository.jboss.org/maven2/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.zip
    tried http://repository.codehaus.org/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.zip
    tried http://repo.grails.org/grails/repo/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3.zip
    tried /home/user/Projects/ellucian_code/banner_student_faculty_grade_entry_app/lib/spring-security-core-1.2.7.3.jar
    tried /home/user/.gvm/grails/2.2.1/lib/org.grails.plugins/spring-security-core/jars/spring-security-core-1.2.7.3-sources.jar
    tried /home/user/.gvm/grails/2.2.1/lib/org.grails.plugins/spring-security-core/bundles/spring-security-core-1.2.7.3-sources.jar
    tried /home/user/.gvm/grails/2.2.1/src/libs/spring-security-core-1.2.7.3-sources.jar
    tried /home/user/.gvm/grails/2.2.1/dist/spring-security-core-1.2.7.3-sources.jar
    tried /home/user/.grails/2.2.1/cached-installed-plugins/spring-security-core-1.2.7.3-sources.jar
    tried /home/user/.gvm/grails/2.2.1/plugins/spring-security-core-1.2.7.3.jar
    tried http://grails.org/plugins/grails-spring-security-core/tags/RELEASE_1.2.7.3/grails-spring-security-core-1.2.7.3.jar
    tried http://repo1.maven.org/maven2/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3-sources.jar CLIENT ERROR: Not Found url=http://repo1.maven.org/maven2/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3-sources.jar
    tried http://repository.jboss.org/maven2/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3-sources.jar CLIENT ERROR: Not Found url=http://repository.jboss.org/maven2/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3-sources.jar
    tried http://repository.codehaus.org/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3-sources.jar
    tried http://repo.grails.org/grails/repo/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3-sources.jar CLIENT ERROR: Not Found url=http://repo.grails.org/grails/repo/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3-sources.jar
    tried http://repository.springsource.com/maven/bundles/release/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3-sources.jar CLIENT ERROR: Not Found url=http://repository.springsource.com/maven/bundles/release/org/grails/plugins/spring-security-core/1.2.7.3/spring-security-core-1.2.7.3-sources.jar

现在我不明白为什么会这样。 Maven repo应该拥有它所拥有的所有插件的所有版本吗?那么,例如,在我的spring-security-core的情况下,它应该具有从1.0开始的所有版本,直到最新版本是正确的?

如何在不手动下载文件的情况下解决此问题?

编辑1:它似乎正在下载它,但它会再次寻找它。 这不是另一个问题的重复,因为该问题使用的是不同的grails版本,我仍然遇到了我提到的问题,即使是在问题所说的内容之后。

编辑2:好的,所以我删除了我的常春藤缓存(我不知道为什么我应该这样做)并再次使用新的repo运行grails clean命令,并使用{{1这就是我得到的:

http/https

0 个答案:

没有答案