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 MongoDB doesn't save in afterUpdate

I'm trying to put some of my domain classes into the MongoDB using the mongoDB grails plugin. Some of the classes stays in MySQL. Everything works fine even the saving of domain class instances into the MongoDB (for example in service on controller…
kuceram
  • 3,795
  • 9
  • 34
  • 54
0
votes
0 answers
0
votes
1 answer

GORM (Hibernate) tries to map non-domain classes; gives DuplicateMappingException

I am upgrading my Grails app from version 2.1.0. Prior to this upgrade the application was behaving fine. I downloaded and set-up the new version of Grails (initially I tried version 2.2.1 but tried going to 2.2.2 today) and did a Grails upgrade on…
David
  • 1,940
  • 3
  • 17
  • 30
0
votes
0 answers

Grails - How to make ivy-cache folder structure the same as maven repository folder structure?

Is it possible to make ivy-cache folder structure the same as maven's repository folder structure? I am planning to use the same location (path,folder) as maven repository and ivy-cache. I'm getting some dependency issues. To resolve them, I feel…
Sun
  • 3,444
  • 7
  • 53
  • 83
0
votes
3 answers

Creating Lucene Index in a Database - Apache Lucene

I am using grails searchable plugin. It creates index files on a given location. Is there any way in searchable plugin to create Lucene index in a database?
Umair Saleem
  • 1,055
  • 5
  • 19
0
votes
1 answer

Grails - Can I use maven repo(.m2) path as ivy-cache path

I find some document Grails 2.1.1, it says we can customize ivy-cache folder. I have a doubt, can I specify my Maven repo (.m2) path as ivy-cache path? grails.project.dependency.resolution = { cacheDir "target/ivy-cache" } You can change the…
Sun
  • 3,444
  • 7
  • 53
  • 83
0
votes
1 answer

grails spring security is not working properly

I have installed spring-security-core plugin for my project for login security.After installing it everything works fine such as if account_locked= true it shows the message that account locked, if enabled=false it shows that account is not enabled…
Sumon Bappi
  • 1,937
  • 8
  • 38
  • 82
0
votes
0 answers

Grails picking old version jars(previous used) also, in 'test war' creation

I used yesterday itext-2.0.8 and today i changed to itext-2.1.7. even it is picking 2.0.8 into war file also two versions of itext jars are coming in war file. Now, there is no reference in pom or BuildConfig regarding 2.0.8, even it adding in…
Sun
  • 3,444
  • 7
  • 53
  • 83
0
votes
0 answers

Grails - How to exclude some jars for grails-app(war) package

Some unwanted wars are being included while maven's grails-app packaging. I need itext-2.0.8, which I added in pom and it is added fine, but below three jars are also getting added, and one is duplicate itext-2.1.5, this should not come into war…
Sun
  • 3,444
  • 7
  • 53
  • 83
0
votes
1 answer

Error creating Job (factory-bean returned null) in Grails quartz plugin

I am using Grails 2.2.2 (GGTS - 3.3.0M1) with Quartz plugin 1.0-RC7. With the following job, I get an error saying that the job instantiation failed when testing with 'grails run-app'. I see the same error if I explicitly call triggerNow() from a…
Vinod
  • 251
  • 3
  • 13
0
votes
1 answer

Security in grails

I'm looking for a security plugin for a grails project. Spring security core 1.2.7.3 looks awesome but it seems that it's not under development for almost a year. Does anyone knows if that is the case? Also are there any other good plugins? Also i'm…
royB
  • 12,779
  • 15
  • 58
  • 80
0
votes
3 answers

how to get several same object values in a Grails form

let's take a simpe domain class: class Person { String aname } A gsp form to let the user input a person is easy: ... someone: ... ... and back in the controller, to get the values, I can just write…
Fred B.
  • 75
  • 5
0
votes
3 answers

Variable Variable in Groovy

I'm in a project using Grails, I user beanFields plugin where I'm changing the bean:inputTemplate into the following
${label}
Dino
  • 1
  • 1
0
votes
1 answer

exclude transitive plugin dependencies

I've installed the asynchronous mail plugin into a Grails 2.1.4 application. This plugin has a dependency on version 2.1.1 of the Hibernate plugin, whereas my app depends on version 2.1.4 of the Hibernate plugin. Every time I execute a Grails…
Dónal
  • 185,044
  • 174
  • 569
  • 824
0
votes
1 answer

Deleting uploaded images

I uploading in my app, images and save them in web-app/myCustomFolderImages. When I want delete some of this images, I'm having 2 problems: Sometimes when I'm deleting file immediately after upload, I can't do this, javaw.exe blocking file.…
user2040547
  • 141
  • 1
  • 6