Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Grails2.2.4中配置插件_Grails_Grails Plugin - Fatal编程技术网

在Grails2.2.4中配置插件

在Grails2.2.4中配置插件,grails,grails-plugin,Grails,Grails Plugin,我的项目插件代码块: 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:$grailsVersio

我的项目插件代码块:

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中将日志级别设置为“warn”):

  • :弹簧安全核心:1.2.7.3
  • :jasper:1.6.1
  • :mail:1.0.1
  • :执行人:0.3
  • :jcaptcha:1.2.1

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

      mavenRepo(root:"https://repo.grails.org/grails/plugins", name:"newGrailsCentral")
      
      PS:你为什么使用2.2.4?如果您正在启动一个新项目,正如您的问题所暗示的,那么您应该尽可能使用2.4.5或3.0.1