Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dependencies issue with spring-security-core plugin

Tags:

I'm trying to install spring-security-core plugin to my project, but it seems that plugin files can't be found in any of the repositories.

I added this line to BuildConfig file's plugin section:

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

After running grails compile command I'm getting following errors (shortened):

        ==== 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 

I also added the ebr() repository to the repositories list. But that didn't change anything.

What could be done to resolve this problem and download the plugin correctly?

like image 627
rpozarickij Avatar asked Oct 05 '13 10:10

rpozarickij


1 Answers

You need extra repository:

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

See announce: http://grails.1312388.n4.nabble.com/Spring-Security-2-0-RC-release-td4649905.html

like image 66
Igor Artamonov Avatar answered Nov 03 '22 20:11

Igor Artamonov