我試圖安裝spring-security-core插件到我的項目中,但似乎無法在任何存儲庫中找到插件文件。彈簧安全核心插件的依賴問題
我加入此行BuildConfig文件的插件部分:
compile ':spring-security-core:2.0-RC2'
運行的Grails編譯命令我收到以下錯誤(縮短)後:
==== 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()存儲庫到存儲庫列表。但是這並沒有改變任何東西。
如何解決此問題並正確下載插件?
這有幫助。謝謝! – rpozarickij
在BuildConfig的倉庫部分下添加上面的行。 –