Grails Mongodb插件安装问题

时间:2010-12-28 09:53:41

标签: grails-plugin grails

尝试安装Mongodb grails插件用于grails应用程序时,我收到以下错误

    ::::::::::::::::::::::::::::::::::::::::::::::

    ::          UNRESOLVED DEPENDENCIES         ::

    ::::::::::::::::::::::::::::::::::::::::::::::

    :: org.springframework#spring-datastore-web;1.0.0.M3: not found

    ::::::::::::::::::::::::::::::::::::::::::::::

任何线索我做错了...... Grails版本是1.3.6 Springsource Tool 2.3.3.CI-R5549-B45

2 个答案:

答案 0 :(得分:1)

您需要将相关存储库添加到Grails搜索以解析依赖关系的列表中。看似spring-datastore-web位于此SpringSource存储库中,因此请将下面的mavenRepo行添加到repositories文件的/grails-app/conf/BuildConfig.groovy部分:

grails.project.dependency.resolution = {
  // ...
  repositories {
    // ...
    mavenRepo "http://s3browse.springsource.com/browse/maven.springframework.org/milestone/"
  }
 // ...
}

希望现在可以解决依赖关系,并且可以构建应用程序。

答案 1 :(得分:0)

您可以在https://github.com/grails/inconsequential找到该jar,http://shrub.appspot.com/maven.springframework.org/snapshot/org/springframework/spring-datastore-web/1.0.0.BUILD-SNAPSHOT/将其重命名为" spring-datastore-web-1.0.0.M3.jar"而不是放在库中.....

相关问题