到目前为止,这一直让我非常沮丧。这就是我想要做的:
- 我使用的 IDE 是 Intellij IDEA。
- 构建 Grails 应用程序。
- Grails 应用程序指定了对内部 grails 插件的两个依赖项,这些插件也在 IntelliJ 中作为单独的 grails 插件项目进行开发。
现在要对插件进行任何更改,我更新插件项目中的源代码并使用 mavan-install(Maven Publisher 插件)部署到本地 Maven 存储库。
我必须卸载核心 grails 项目中的插件。从ivy中删除插件缓存,然后运行核心grails项目,该项目从本地maven存储库获取插件的最新副本。
实现这一目标的有效且理想的方法是什么?一次更改就需要我花费 5 分钟的时间来测试和运行核心应用程序。
有什么建议/最佳实践吗?
This has been very upsetting for me up till now. Here is what I am trying to do:
- IDE I'm using is Intellij IDEA.
- Building a grails application.
- Grails application specifies two dependencies on in house grails plugins also being developed in IntelliJ as separate grails plugin projects.
Now to make any changes to plugins, I update the source code in plugin projects and use mavan-install (Maven Publisher plugin) to deploy to local Maven repository.
I have to uninstall the plugin in core grails project. Delete the plugin cache from ivy and then run the core grails project which gets the latest copy of plugin from local maven repository.
What's the effective and ideal way to achieve this? A single change makes me do some 5 minutes of labour work to even test and run core application.
Any recommendations/ best practices?
发布评论
评论(1)
为此,请使用内联插件 - 请参阅 http://grails.org/doc/latest/guide/12.%20Plug-ins.html#12.1%20Creating%20and%20Installing%20Plug-ins
通过指定插件项目目录以
grails.plugin.location.
作为已安装插件的位置,您可以编辑真实文件,更改将影响测试应用程序,无需同步任何内容。Use inline plugins for this - see section "Specifying Plugin Locations" in http://grails.org/doc/latest/guide/12.%20Plug-ins.html#12.1%20Creating%20and%20Installing%20Plug-ins
By specifying the plugin project directory with
grails.plugin.location.<plugin-name>
as the location of the installed plugin, you can edit the real files and the changes will affect the test application, and there's no need to sync anything up.