如何安全地更新grails插件 [英] How to safely update a grails plugin
问题描述
我一直在为grails项目工作一段时间,最初安装的一些插件已经更新。
我运行以下脚本以查看什么插件需要更新
grails list-plugin-updates
,结果是
具有可用更新的插件如下所示:
----------------------------------------------- --------------
< Plugin> <电流和GT; <推介>
joda-time 1.1 1.2
jquery 1.4.4.1 1.6.1.1
jquery -ui 1.8.7 1.8.11
recaptcha 0.5.0 0.5.2
可搜索0.5 .5.1 0.6
spring-security-core1.1
tomcat 1.3.7 1.3.7.2
现在我该如何更新全部或部分这些插件?
是否需要卸载并重新安装每个插件?
这会如何影响主代码中插件的使用/引用?
更新一个插件,你只需再次运行 install-plugin
,它会检测到插件已经安装,并删除旧插件并安装新插件。对于一个小版本delta应该没问题,但是我一次只做一个,并在两者之间进行测试(但是一起完成2个JQuery插件)。
如果幸运的话,该插件要么没有兼容性问题,要么将它们记录在插件文档中,因此请务必在升级前检查。
I've been working on a grails project for a while now and some of the plugins I installed initially have been updated.
I ran the following scripts to see what plugins needed updating
grails list-plugin-updates
and the result was
Plugins with available updates are listed below:
-------------------------------------------------------------
<Plugin> <Current> <Available>
joda-time 1.1 1.2
jquery 1.4.4.1 1.6.1.1
jquery-ui 1.8.7 1.8.11
recaptcha 0.5.0 0.5.2
searchable 0.5.5.1 0.6
spring-security-core1.1
tomcat 1.3.7 1.3.7.2
Now how do I go about updating all or some these plugins?
Is it a matter of uninstalling and reinstalling each one?
How does this affect usages/references to the plugin in the main code?
To update a plugin you just run install-plugin
again and it'll detect that the plugin's already installed and will remove the old one and install the new one. For a small version delta this should be fine, but I'd do them one at a time and test in-between (but do the 2 JQuery plugins together).
If you're lucky the plugin either has no compatibility issues, or they're documented in the plugin docs, so be sure to check there before upgrading.
这篇关于如何安全地更新grails插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!