grails-plugin

(grails) com.sun.mail.smtp.SMTPSendFailedException: 553 Relaying disallowed as zoho mail

霸气de小男生 提交于 2019-12-13 19:29:04
问题 I am trying to configure zoho mail service in grails mail-plugin. Here is my configuration so far, grails { mail { host = "smtp.zoho.com" port = 465 username = "email@valid.com" password = "some-valid-password" props = ["mail.smtp.auth":"true", "mail.smtp.starttls.enable":"true", "mail.smtp.socketFactory.port":"465", "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory", "mail.smtp.socketFactory.fallback":"false"] } } Here is my service method. The above config works great if I put

Copying a folder from pluginBasedir to the target project

三世轮回 提交于 2019-12-13 18:59:36
问题 I want one folder to be copied from my plugin's base directory (pluginBasedir) to the target project when someone installs my plugin. If I keep that folder within web-app, it gets copied. But I want to keep that folder under base directory. Do I have to ovverride _GrailsPluginDev.groovy script? Regards, Paras 回答1: You can use the plugin's _Install script (in the scripts folder). Assuming the folder you want to copy is named 'foo' and the plugin name is 'bar', you can use this: ant.mkdir dir:

Grails ElasticSearch Plugin - Suggest Query

♀尐吖头ヾ 提交于 2019-12-13 05:03:37
问题 Is it possible to write a suggest query using the plugin? There's nothing about that in the plugin documentation. If it's possoble, how do I do that? Here's the elasticsearch docs about suggest querys: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters.html http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html Thanks very mutch for the answer. 回答1: Indeed, you do need to send the query directly to Elastic

grails: Image upload without page refresh

懵懂的女人 提交于 2019-12-13 04:54:55
问题 I had did some research on stack and Google for Image upload via Ajax(In Grails) and I found some old links, therefore I decided to ask to you guys that " Is there any method to upload my user Image using Ajax "? I have found one Grails plugin plugin link but documentation of this plugin is not sufficient.I want to use this plugin(As I said due to lack of good documentation of this plugin it looks me difficult to implement it) or please tell me some alternate options if available. 回答1: Try

How to make changes to Tomcat 7 plugin source for Grails 2

本小妞迷上赌 提交于 2019-12-13 03:43:52
问题 I'm using Grails 2.3.11 with the Tomcat 7.0.54 plugin. My Java version is 1.8.0_181. When I try to start the grails app with https enabled by running grails run-app --https I get the following exception: java.lang.ClassNotFoundException: com.ibm.crypto.tools.KeyTool I found an answer on how to fix the faulty code in the Tomcat plugin: https://stackoverflow.com/a/44673672/1037864 However I don't know how to get my changes to apply. When I edit the code in Tomcatserver.groovy nothing happens.

Grails 3.0.0.M1 - create-plugin - Could not find method bintray

空扰寡人 提交于 2019-12-12 21:08:48
问题 In the frustration, that I am not able to add a filter and mapping to the gone web.xml I wanted to create a plugin, only to be able to use doWithWebDescriptor() (My first plugin for my first application) I am not good enough to discern, if the following is worth a JIRA, or I screwed something again. Can someone decide this one for me please? Thank you $ grails create-plugin plug | Application created at /home/rawi/work/grails/plug $ cd plug $ grails --stacktrace Resolving dependencies. Please

Using Grails Spring Security Saml Plugin

若如初见. 提交于 2019-12-12 20:19:10
问题 I am trying to use Grails Spring Security Saml Plugin in grails app to have single sign on functionality, I have tried hard to find any example which have explanation of the steps I need to do for adding this plugin and then testing this in my local environment using mock IDP and SP but haven't found anything beside the Grails Spring Security Saml Plugin Documentation which only helps in adding the plugin in the app and configuring its different properties. Can anyone suggest the steps how I

Can I control plugin load order from outside a plugin in Grails?

懵懂的女人 提交于 2019-12-12 20:07:44
问题 I would like to control plugin load order from outside of a plugin in Grails. From within a plugin you can control load order with dependsOn, loadAfter or loadBefore: http://grails.org/doc/latest/guide/plugins.html#understandingPluginLoadOrder But is it possible to do this from outside of the plugin? I don't want to modify the original plugin. My end goal is to use the database-migration plugin to manage the quartz plugin and activiti plugin database schemas. 来源: https://stackoverflow.com

Creating grails binary plugin results in jar file wich contains all groovy files with comments

隐身守侯 提交于 2019-12-12 20:00:31
问题 I'm using the grails release plugin (3.0.1) in my grails 2.3.0 plugin to build a binary plugin with maven-deploy --binary I also set def packaging = "binary" in my Plugins Descriptor Groovy script. When i inspect the created jar file with jd-gui i can see that it contains my *.groovy sources with comments between the *.class files. I think this shouldn't be, or am i false? Why does the binary plugin jar contain my *.groovy sources? How can i fix this? 回答1: This new in 2.3 - source is now

Grails Stripe plugin error

不羁岁月 提交于 2019-12-12 19:27:19
问题 i'm using Stripe plugin for Grails ,Grails version 2.5.1 i can't make any successful transaction i always get There was an error processing your credit card. as shown in the controller , i noticed that Charge method is not defined as shown in the screenshot i tried to import com.stripe.Stripe but i'm getting unable to resolve class com.stripe.Stripe . Here is the action: def charge(String stripeToken, Double amount) { //Stripe.apiKey = grailsApplication.config.grails.plugins.stripe.secretKey