2
votes

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

3
Just tried to open this mavenRepo, it asks for password and doesn't work for anonymous user - Igor Artamonov

3 Answers

3
votes

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')
2
votes

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/"