25

プロジェクトに spring-security-core プラグインをインストールしようとしていますが、どのリポジトリにもプラグイン ファイルが見つからないようです。

この行を BuildConfig ファイルのプラグイン セクションに追加しました。

    compile ':spring-security-core:2.0-RC2'

grails compile コマンドを実行した後、次のエラー (短縮) が表示されます。

        ==== ebrRelease: tried

          http://repository.springsource.com/maven/bundles/release/org/springframework/security/spring-security-core/3.2.0.RC1/spring-security-core-3.2.0.RC1.pom

          -- artifact org.springframework.security#spring-security-core;3.2.0.RC1!spring-security-core.jar:

          http://repository.springsource.com/maven/bundles/release/org/springframework/security/spring-security-core/3.2.0.RC1/spring-security-core-3.2.0.RC1.jar

        ==== ebrExternal: tried

          http://repository.springsource.com/maven/bundles/external/org/springframework/security/spring-security-core/3.2.0.RC1/spring-security-core-3.2.0.RC1.pom

          -- artifact org.springframework.security#spring-security-core;3.2.0.RC1!spring-security-core.jar:

          http://repository.springsource.com/maven/bundles/external/org/springframework/security/spring-security-core/3.2.0.RC1/spring-security-core-3.2.0.RC1.jar

        ==== grailsCentral: tried

          http://grails.org/plugins/grails-spring-security-core/tags/RELEASE_3.2.0.RC1/spring-security-core-3.2.0.RC1.pom

          -- artifact org.springframework.security#spring-security-core;3.2.0.RC1!spring-security-core.jar:

          http://grails.org/plugins/grails-spring-security-core/tags/RELEASE_3.2.0.RC1/grails-spring-security-core-3.2.0.RC1.jar

        ==== mavenCentral: tried

          http://repo1.maven.org/maven2/org/springframework/security/spring-security-core/3.2.0.RC1/spring-security-core-3.2.0.RC1.pom

          -- artifact org.springframework.security#spring-security-core;3.2.0.RC1!spring-security-core.jar:

          http://repo1.maven.org/maven2/org/springframework/security/spring-security-core/3.2.0.RC1/spring-security-core-3.2.0.RC1.jar

                module not found: org.springframework.security#spring-security-web;3.2.0.RC1

        ==== grailsHome: tried

          C:\dev\springsource\grails-2.2.3\bin\../lib/org.springframework.security/spring-security-web/ivy-3.2.0.RC1.xml

          -- artifact org.springframework.security#spring-security-web;3.2.0.RC1!spring-security-web.jar:

          C:\dev\springsource\grails-2.2.3\bin\../lib/org.springframework.security/spring-security-web/jars/spring-security-web-3.2.0.RC1.jar

          C:\dev\springsource\grails-2.2.3\bin\../lib/org.springframework.security/spring-security-web/bundles/spring-security-web-3.2.0.RC1.jar

        ==== grailsHome: tried

          C:\dev\springsource\grails-2.2.3\bin\..\src\libs/spring-security-web-3.2.0.RC1.xml

          -- artifact org.springframework.security#spring-security-web;3.2.0.RC1!spring-security-web.jar:

          C:\dev\springsource\grails-2.2.3\bin\..\src\libs/spring-security-web-3.2.0.RC1.jar

        ==== grailsHome: tried

          C:\dev\springsource\grails-2.2.3\bin\..\dist/spring-security-web-3.2.0.RC1.xml

          -- artifact org.springframework.security#spring-security-web;3.2.0.RC1!spring-security-web.jar:

          C:\dev\springsource\grails-2.2.3\bin\..\dist/spring-security-web-3.2.0.RC1.jar

        ==== grailsHome: tried

          C:\dev\springsource\grails-2.2.3\bin\../plugins/spring-security-web-3.2.0.RC1.pom

          -- artifact org.springframework.security#spring-security-web;3.2.0.RC1!spring-security-web.jar:

          C:\dev\springsource\grails-2.2.3\bin\../plugins/spring-security-web-3.2.0.RC1.jar

        ==== ebrRelease: tried

          http://repository.springsource.com/maven/bundles/release/org/springframework/security/spring-security-web/3.2.0.RC1/spring-security-web-3.2.0.RC1.pom

          -- artifact org.springframework.security#spring-security-web;3.2.0.RC1!spring-security-web.jar:

          http://repository.springsource.com/maven/bundles/release/org/springframework/security/spring-security-web/3.2.0.RC1/spring-security-web-3.2.0.RC1.jar

        ==== ebrExternal: tried

          http://repository.springsource.com/maven/bundles/external/org/springframework/security/spring-security-web/3.2.0.RC1/spring-security-web-3.2.0.RC1.pom

          -- artifact org.springframework.security#spring-security-web;3.2.0.RC1!spring-security-web.jar:

          http://repository.springsource.com/maven/bundles/external/org/springframework/security/spring-security-web/3.2.0.RC1/spring-security-web-3.2.0.RC1.jar

        ==== grailsCentral: tried

          http://grails.org/plugins/grails-spring-security-web/tags/RELEASE_3.2.0.RC1/spring-security-web-3.2.0.RC1.pom

          -- artifact org.springframework.security#spring-security-web;3.2.0.RC1!spring-security-web.jar:

          http://grails.org/plugins/grails-spring-security-web/tags/RELEASE_3.2.0.RC1/grails-spring-security-web-3.2.0.RC1.jar

        ==== mavenCentral: tried

          http://repo1.maven.org/maven2/org/springframework/security/spring-security-web/3.2.0.RC1/spring-security-web-3.2.0.RC1.pom

          -- artifact org.springframework.security#spring-security-web;3.2.0.RC1!spring-security-web.jar:

          http://repo1.maven.org/maven2/org/springframework/security/spring-security-web/3.2.0.RC1/spring-security-web-3.2.0.RC1.jar

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

                ::          UNRESOLVED DEPENDENCIES         ::

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

                :: org.springframework.security#spring-security-core;3.2.0.RC1: not found

                :: org.springframework.security#spring-security-web;3.2.0.RC1: not found

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


| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- org.springframework.security:spring-security-core:3.2.0.RC1
- org.springframework.security:spring-security-web:3.2.0.RC1

また、リポジトリ リストに ebr() リポジトリを追加しました。しかし、それは何も変わりませんでした。

この問題を解決し、プラグインを正しくダウンロードするにはどうすればよいですか?

4

2 に答える 2

58

追加のリポジトリが必要です:

mavenRepo 'http://repo.spring.io/milestone'

アナウンスを参照してください: http://grails.1312388.n4.nabble.com/Spring-Security-2-0-RC-release-td4649905.html

于 2013-10-05T10:15:30.043 に答える