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
8
votes
1 answer

Grails gradle "a task with that name already exists"

I'm trying to create a test task rule using the example provided in the grails gradle doc but I keep getting "a task with that name already exists" error. My build script is as follows: import org.grails.gradle.plugin.tasks.* //Added import here…
user3240644
  • 2,211
  • 2
  • 24
  • 35
8
votes
5 answers

How to monitor and maintain my grails application in live/production environment?

It is the first time I have ever launched live a website (with Grails web framework under Amazon EC2 platform and Cloud Foundry) and I realized quickly that I am not ready for monitoring and maintening correctly my application in production mode…
8
votes
5 answers

How to integrate angular js into grails 2.3.4?

I am running on grails 2.3.4 and though about integrating angularjs in my next application. I think the best way from the server side is to use grails REST integration in the domain and controller classes. However here I am stuck. How to get…
user2051347
  • 1,609
  • 4
  • 23
  • 34
8
votes
3 answers

What makes nimble better than shiro?

What makes nimble a better choice than shiro? I'm trying to decide between nimble and shiro for a new grails project right now and I'm curious what makes nimble the better choice.
Brandon
  • 2,900
  • 1
  • 23
  • 36
8
votes
6 answers

"Error loading plugin manager: TomcatGrailsPlugin" on Grails 2.3 Database Migration

I use Grails 2.3 and the Grails database migration plugin (1.3.6). When I do grails dbm-update I get the following error. How can I solve this error? Error Error loading plugin manager: TomcatGrailsPlugin (NOTE: Stack trace has been filtered. Use…
Michael
  • 32,527
  • 49
  • 210
  • 370
7
votes
4 answers

Grails hangs on command line

I just downloaded Grails 2.0.1. Created a new project and then tried adding the mysql connector as per the documentation but Grails hangs at command prompt without any message. I tried to execute in verbose and stacktrace mode but it prints…
amit modi
  • 1,098
  • 1
  • 11
  • 26
7
votes
2 answers

How to skip plugin update prompt when running GRAILS run-app?

Started a new project using Grails RC3 (Windows 7 64 bit Java 1.6) Installed spring-security-core plugin Now whenever i do a GRAILS run-app it prompts me to upgrade webxml-1.4 to 1.3.1 over and over again I use IntelliJ 10.5.3 and the console does…
7
votes
2 answers

XML sitemap in Grails

I am trying to figure out the best way to generate an XML sitemap (as described here: http://www.sitemaps.org/) for a Grails application. I am not aware of any existing plugins that do this so I might build one. However, I wanted to get the…
RyanLynch
  • 2,987
  • 3
  • 35
  • 48
7
votes
3 answers

Client does not have permissions to send as this sender (office 365, grails)

I am continuously receiving following error message while trying to configure grails mail plugin (https://grails.org/plugin/mail) for grails spring security plugin. Here is my configuration looks so far, grails { mail { …
Balkrishna
  • 2,897
  • 3
  • 23
  • 31
7
votes
1 answer

grails-2.3.7 plugins/repository not found

Suddenly my Grails application having error by causing of some plugins are not found. I think the repository has been removed or move somewhere. Code on my BuildConfig.groovy: log "warn" checksums true legacyResolve false ..... compile…
Suzon
  • 749
  • 1
  • 8
  • 21
7
votes
2 answers

Unique random token generation in grails

I am new with grails and on my web application i want to generate a random token with 15 characters length along with username. And tokens must be unique. All characters from a-z and 0-9 can be use, but no special characters. I have tried to…
JiniKJohny
  • 1,172
  • 13
  • 29
7
votes
1 answer

Email verification in grails

I am new with grails and am developing a web application in grails. In my registration page I am getting the user's email id and I need to send a mail with authentication…
JiniKJohny
  • 1,172
  • 13
  • 29
7
votes
3 answers

How to extend/override controller actions of plugins?

The plugin (Nimble 0.3) I am using in my grails application, includes some controllers and associated actions. I want to change (slightly) some actions behavior, and I was wondering how I can achieve that. Can I create a child controller that…
7
votes
6 answers

Hooking into Grails Domain object save()

I'm writing a grails plugin and I need to hook into the domain save() method to do some logic after the save. I need to do this across multiple domain classes. I'm trying to avoid hibernate events in the cases where a plugin user is not using…
mbrevoort
  • 5,075
  • 6
  • 38
  • 48
7
votes
2 answers

Compile CSS into HTML as Inline Style in Grails?

I want to generate GSP templates for html emails. To support more mail clients it is recommended to use inline css in html style elements. Here is a discussion on that topic: "Compile" CSS into HTML as inline styles Is there a Grails plugin where I…
Michael
  • 32,527
  • 49
  • 210
  • 370