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

tim_yates
  • 167,322
  • 27
  • 342
  • 338
noob
  • 300
  • 5
  • 16

3 Answers3

3

Guice 2 is in Maven Central but under a different group ID. You may be able to get it working by declaring the plugin in BuildConfig instead of using install-plugin so you can exclude the transitive dependency

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

and then pull in the right dependency explicitly in the dependencies section

dependencies {
  compile('com.google.inject:guice:2.0')
Ian Roberts
  • 120,891
  • 16
  • 170
  • 183
2

Adding the following line to the 'repositories' section of the buildConfig.groovy file fixed it for me.

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

benjaminjsanders
  • 827
  • 8
  • 13
1

You're seeing http://jira.grails.org/browse/GPSPRINGSECURITYOPENID-23 - I'm working on a fix.

Burt Beckwith
  • 75,342
  • 5
  • 143
  • 156