Results 1 to 2 of 2

Thread: grails controllers/services/taglibs in a seperate jar file

  1. #1
    Join Date
    Jul 2010
    Location
    Dublin
    Posts
    9

    Default grails controllers/services/taglibs in a seperate jar file

    Hello,

    Is it possible to package Grails controllers/services/taglibs in seperate jar and use it in Grails application. We want to abstract common functionality there and use it in specific Grails apps.
    I know that this would normally be achieved using grails plugin, however as far as we know hotfix to plugin requires rebuilt of all affected web apps using that plugin, which is a big overhead in our case (many web apps).

    Would it be possible to package some of the core Grails artefacts (controllers/services/taglibs) in a jar file and put it on the classpath of the application server so in case of a bug we rebuilt only that jar, deploy it and restart app server as opposed to rebuilding all the web apps and redeploying them.

    Thanks for any advices,
    Klekot

  2. #2
    Join Date
    Jun 2010
    Location
    London
    Posts
    304

    Default

    It's not possible to package artifacts in JARs at the moment and it's unlikely to be added as a feature.

    Note that plugins as runtime modules (so you can deploy them independently) is something we will be looking at for Grails 2.0.

    Actually, it's probably possible to do what you want, but you have to understand the metadata requirements for Grails.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •