【问题标题】:Configure plugin in grails 2.2.4在 grails 2.2.4 中配置插件
【发布时间】:2015-07-14 21:13:53
【问题描述】:

我的项目插件代码块:

plugins {
    compile ":spring-security-core:1.2.7.3"
    compile ":jasper:1.6.1"
    compile ":mail:1.0.1"
    compile ":executor:0.3"
    compile ":jcaptcha:1.2.1"

    build ":tomcat:$grailsVersion"
    runtime ":hibernate:$grailsVersion"
    runtime ":jquery:1.8.3"
}

但是当我在控制台中显示以下错误消息时:

无法解决依赖关系(在 BuildConfig.groovy 中将日志级别设置为“警告”以获取更多信息):

  • :spring-security-core:1.2.7.3
  • :碧玉:1.6.1
  • :邮件:1.0.1
  • :执行者:0.3
  • :jcaptcha:1.2.1

【问题讨论】:

    标签: grails grails-plugin


    【解决方案1】:

    在过去几年的某个时候,默认 grails 存储库的位置发生了变化。尝试将此添加到您的 repositories 块中:

    mavenRepo(root:"https://repo.grails.org/grails/plugins", name:"newGrailsCentral")
    

    PS:你为什么使用 2.2.4?如果您要开始一个新项目,正如您的问题所暗示的那样,那么您应该尽可能使用 2.4.5 或 3.0.1。

    【讨论】:

      猜你喜欢
      • 2014-02-14
      • 1970-01-01
      • 1970-01-01
      • 2010-10-25
      • 2012-01-27
      • 1970-01-01
      • 2018-02-16
      • 2013-08-08
      • 1970-01-01
      相关资源
      最近更新 更多