Questions tagged [grails-plugin]

A Grails plugin is a self-contained bundle of functionality that can be installed into a Grails application.

A Grails plugin is a self-contained bundle of functionality that can be installed into a Grails application. When a Grails plugin is installed, it can do any of the following:

  • Define additional Spring beans
  • Modify the generated web.xml file
  • Add new methods to the application's artefacts (controllers, domain classes, services, etc.)
  • Provide new tag libraries
  • Make additional resources and classes available to the application
  • Provide new Grails commands

For example, when you install the jQuery plugin

  • The jQuery JavaScript files are added to the application
  • A new Grails tag <jq:jquery> is added to the application
  • A new Grails command grails install-plugin jquery is added to the application

When you install a Grails plugin, that plugin's functionality is made available to the installing application. However, the plugin itself is not actually copied into the application, only the plugin name and version is added to the application's application.properties file. The plugin itself is downloaded to $HOME/.grails and the application loads it from there.

The structure of a Grails plugin project is identical to that of a Grails application, with the exception of a configuration file (known as a plugin descriptor) that is included in a plugin's root directory.

1510 questions
0
votes
1 answer

Grails searchable plugin installation error

I am using grails 2.2.1 and trying to install the searchable plugin version 0.6.4. I've added a named proxy and it is set. This seems to be not the problem. I've changed the buildConfig.groovy as follows: repositories { inherits true // Whether…
Luixv
  • 8,590
  • 21
  • 84
  • 121
0
votes
1 answer

how to use the POST method ( rest plugin - grails )?

I'm using the grails plugin: REST client facilities I can use the method Get like this (code from the grails rest plugin page): withHttp(uri: "http://www.google.com") { def html = get(path : '/search', query : [q:'Groovy']) assert…
0
votes
1 answer

unable inject grails app context in src/groovy

I have created custom event listener that extends AbstractPersistenceEventListener as described in the Grails docs http://grails.org/doc/latest/guide/GORM.html and it works fine, however. i am unable to inject Service in this listener if doing as…
latvian
  • 3,161
  • 9
  • 33
  • 62
0
votes
1 answer

Correct Implementation of Export Plugin for Grails to export a GSP as PDF

I am a fairly new developer in Grails using STS 3.2 (grails version 2.2.0) and I have an application where I want to export data from a GSP to PDF format. I have installed the Export 1.5 plugin and have a reportController with the following: def pdf…
DaveB
  • 1
  • 1
  • 1
0
votes
1 answer

"GORM support for Hadoop HBase plugin" is not supporting for grails 2.1.0

When I install Grails plugin "GORM support for Hadoop HBase". I am getting this error. | Error Plugin gorm-hbase-0.2.4 requires version [1.3.2] of Grails which your cu rrent Grails installation does not meet. Please try install a different…
Balaji
  • 757
  • 7
  • 16
0
votes
1 answer

Grails Spring Security Core Plugin :authentication not required for controller

I have Grails 2.0.4 spring-security-core:1.2.7.3 i want to expose some controller as web service. (this methods will be called from php application out side the domain) Example controller : def getAnimalJson(){ def animalList =…
monda
  • 3,809
  • 15
  • 60
  • 84
0
votes
3 answers

Compiled and signed grails plug-in

Is it possible to compile and sign grails plug-in? I am thinking about distributing my application logic using grails plug-in architecture and I do not want my client to be able to read that easily .groovy or to modify it. Is it possible to package…
Dan
  • 11,077
  • 20
  • 84
  • 119
0
votes
1 answer

Sample Grails 2.14 app not working in Tomcat

Grails 2.1.4 Tomcat 7.0.37 Java 1.7 Window 7 I created Sample Grails app in eclipse, i run with run-app. it is working fine and able to open in brower also. But for same application, i build .war file with grails:maven-install. And i am trying to…
Kumar
  • 33
  • 1
  • 9
0
votes
2 answers

missing dependencies - Grails

i am getting error like this | Loading Grails 2.1.4 | Configuring classpath. | Environment set to development..... | Packaging Grails application..... | Compiling 2 source files..... | Error Error: The following plugins failed to load due to…
Kumar
  • 33
  • 1
  • 9
0
votes
1 answer

using Grails 2 Web Flow plugin for a shared nothing architecture

I am using grails 2.2 for a large, non trivial web application, with “shared nothing” approach. I find Grails plugin -> grails Web flows very useful , however I cannot store the conversation state in the user session. Is there a way to store this in…
0
votes
1 answer

Dependency injection of cxf-bean / client in a grails service doesn't work - maybe because it's configured in my plugins config.groovy?

I'm working on a payment plugin for the grails framework. I'm using a payment provider which gives me a SOAP API (WSDL) and I need a cxf-client to communicate with the webservice. I installed https://github.com/ctoestreich/cxf-client (cxf-client…
whitenexx
  • 1,350
  • 2
  • 25
  • 53
0
votes
1 answer

Grails Resources Plugin resource scope

I am struggling to understand the scope of resources defined with the Grails resources plugin. I have created a small project (Grails 2.0.4) with a single domain item of Book and generated the associated Controller and Views. I have then modified…
kimbad
  • 1
0
votes
3 answers

Java / Grails : Send SMS from application

I have a Training Management system in grails (grails version 2.0.4) My Requirement Whenever user enrolls for training he must receive a sms alert to his mobile number given while registering. SMS to only Indian mobile phones (as we provide…
maaz
  • 3,534
  • 19
  • 61
  • 100
0
votes
1 answer

Error when attempting to integrate with eclipse after adding spock grails plugin to project

After adding to BuildConfig for Grails 2.0.4 project: test ":spock:0.7" in the plugins { } section per the plugin documentation I wanted to update my eclipse project to include the spock libraries to create a test so I ran grails integrate-with…
fourgablesguy
  • 449
  • 6
  • 17
0
votes
2 answers

Grails oauth is not functioning

I'm very new to Grails, and I'm trying the Oauth plugin. I configured my plugin as here: oauth { providers { twitter { api = TwitterApi key = 'xxxxx' secret = 'xxxxx' } …
sriram
  • 8,562
  • 19
  • 63
  • 82