2

I am trying to do the tutorial of the Grails openId plugin. I created a test app and followed exactly the steps from the tutorial of Burt Beckwith http://grails-plugins.github.com/grails-spring-security-openid/docs/manual/guide/3.%20Tutorials.html

But when I am already on the steps of doing this: $ grails s2-quickstart com.openidtest User Role

it displays an error:

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

  • com.google.code.guice:guice:2.0

Can someone please tell me why? I already added this to the BuildConfig.groovy: mavenRepo "http://guice-maven.googlecode.com/svn/trunk/" but it still doesnt work.

Please help, thank you

4

3 回答 3

3

Guice 2 在 Maven Central 中,但在不同的组 ID 下。您可以通过在 BuildConfig 中声明插件而不是使用来使其工作,install-plugin这样您就可以排除传递依赖

plugins {
  compile(':spring-security-openid:1.0.4') {
    excludes 'guice'
  }
}

然后在依赖项部分显式引入正确的依赖项

dependencies {
  compile('com.google.inject:guice:2.0')
于 2013-02-07T11:22:27.890 回答
2

将以下行添加到 buildConfig.groovy 文件的“存储库”部分为我修复了它。

mavenRepo " https://repository.jboss.org/nexus/content/repositories/thirdparty-uploads/ "

于 2013-05-02T17:58:19.927 回答
1

你看到http://jira.grails.org/browse/GPSPRINGSECURITYOPENID-23 - 我正在修复。

于 2013-01-30T15:00:37.493 回答