【问题标题】:What's the right way to install grails plugin on grails 2.3?在 grails 2.3 上安装 grails 插件的正确方法是什么?
【发布时间】:2016-09-27 02:05:20
【问题描述】:

我必须在 grails 2.3 上安装 grails twilio 插件,插件在此处可用https://github.com/Novadge/grails-twilio

有人可以帮我在我的 grails 2.3 项目上安装这个插件吗?

【问题讨论】:

标签: grails grails-plugin


【解决方案1】:

你必须将它添加到你的 BuildConfig.groovy

compile "org.grails.plugins:twilio:0.1"

此处的文档:https://grails.org/plugin/twilio

【讨论】:

    【解决方案2】:

    如文档中所述,您可以通过在 config.groovy 文件中添加 twillo 配置来安装插件 -

    twilio {
        // Enter your host address
        host = 'https://api.twilio.com'
        apiID = 'enter your api Id'
        apiPass = 'enter your api password'
        smsUrl = '/2010-04-01/Accounts/' + apiID + '/Messages.json'
        number = ""
    }
    

    以及BuildConfig.groovydependencies下的其他相关依赖组件如-

         dependencies {
         .
         .
         //twilio plugin        
         compile "org.grails.plugins:twilio:0.1"
    
         compile(group:'org.apache.httpcomponents',name:'httpclient',version:'4.3.6')
         compile(group:'org.apache.httpcomponents',name:'fluent-hc',version:'4.3.6')
         compile(group:'org.apache.httpcomponents',name:'httpclient-cache',version:'4.3.6')
         compile(group:'org.apache.httpcomponents',name:'httpmime',version:'4.3.6')
    
        .
        .
    
        }
    

    【讨论】:

    • 嗨阿比南丹,感谢您的回复。我已经在 config 和 buildconfig 中添加了这些设置,但插件仍然没有安装我必须做什么安装 twilio 插件你能告诉我使它工作的整个过程 twilio 插件吗?我是这方面的初学者
    • @GregOday 您遇到了什么错误?您能否添加有关您面临的问题的更多详细信息?
    猜你喜欢
    • 2013-03-22
    • 2011-08-31
    • 1970-01-01
    • 2011-10-12
    • 2015-04-27
    • 1970-01-01
    • 1970-01-01
    • 2013-11-13
    • 2014-10-20
    相关资源
    最近更新 更多