example grails plugins spring-security

example - spring security grails 3.3 2



Problema de dependencias con el plugin spring-security-core (2)

Estoy intentando instalar el plugin spring-security-core en mi proyecto, pero parece que los archivos de plugin no se pueden encontrar en ninguno de los repositorios.

Agregué esta línea a la sección del complemento del archivo BuildConfig:

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

Después de ejecutar el comando de compilación Grails, recibo los siguientes errores (abreviado):

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

También agregué el repositorio de ebr () a la lista de repositorios. Pero eso no cambió nada.

¿Qué se puede hacer para resolver este problema y descargar el complemento correctamente?



Prueba esto: Comprobar (preferible desde la misma consola) cada URL grails está intentando descargar

curl --verbose http://grails.org/plugins/grails-spring-security-core/tags/RELEASE_2.0-RC2/spring-security-core-2.0-RC2.pom

En mi caso, he detectado que el repositorio de http://grails.org se ha movido a https://repo.grails.org

HTTP/1.1 302 Found Date: Fri, 06 Mar 2015 01:59:30 GMT Content-Type: text/plain; charset=utf-8

Content-Length: 0 Conexión: keep-alive expira = sáb, 05-Mar-16 01:59:29 GMT; ruta = /; domain = .grails.org; HttpOnly Location: https://repo.grails.org/grails/plugins-releases-local/org/grails/plugins/spring-security-core/2.0-RC2/spring-security-core-2.0-RC2.pom

¡Buena suerte!