欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Grails如何引用开发中的插件

程序员文章站 2022-05-23 16:21:29
...
即使没有被安装,Grails也可以引用文件系统中的任何插件。具体方法是:在grails-app/conf/BuildConfig.groovy文件中增加:


// Useful to test plugins you are developing.
grails.plugin.location.shiro =
"/home/dilbert/dev/plugins/grails-shiro"// Useful for modular applications where all plugins and
// applications are in the same directory.
grails.plugin.location.'grails-ui' = "../grails-grails-ui"


通常在以下两种情形较为有用:
[list]
[*] 引用开发中的插件
[*] 使用Grails最佳实践-将应用划分为一组在“超级项目”下的“一组插件”
[/list]
相关标签: grails