简体   繁体   中英

Installing local plugin on grails 2.5.1

Based on the slide show at http://www.slideshare.net/kennethaliu/modularizing-your-grails-application-with-private-plugins-springone-2gx-2012 I am trying to modularize my app. To do it I have created a plugin called lms-core and added it in the same directory as main app's grails-app

For adding the dependency I have added following code in my buildconfig

    plugins {
         ...
        grails.plugin.location.LmsCore = "lms-core"
        grails.plugin.location.'lms-core' = "lms-core"
    }

I have tried the both ways show in the code with and without the dash(-) and I still get unable to resolve class compile error. These are the classes moved to the plugin. I have already gone through following questions without any solutions

How to run a local plugin in Grails 2.0?

http://grails.1312388.n4.nabble.com/Insert-own-local-plugin-into-build-config-td4646704.html

You must place the grails.plugin.location outside the plugins closure.

plugins {
         ...
}
grails.plugin.location.'lms-core' = "../lms-core" // Or wherever the location is

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM