[英]How do I set where my grails plugins should be installed?
I saw the light and install the joda-time plugin for grails. 我看到了灯光,并为grails安装了joda-time插件。
However, when I tried to commit my changes to source control I realised that grails had located the files in: 但是,当我尝试将更改提交到源代码控制时,我意识到grails已将文件放在:
C:\Users\Steve\.grails\1.1.1\plugins
instead of somewhere under the project directory of: 而不是项目目录下的某个地方:
f:\grails\projects\myproject
Yeah I'm using windows :-\\ 是的我正在使用Windows: - \\
So now when someone pulls down my changes from source control they are missing all the joda-time plugin lovelyness and they are wanting to spank me :) 所以现在当有人从源代码控制中删除我的更改时,他们会错过所有joda-time插件的可爱性,他们想要打我:)
What should I be setting so that grails doesn't put anything under my user directory? 我应该设置什么,以便grails不会在我的用户目录下放置任何内容? (It isn't installed as a global plugin - just as a project one - at least I think so, I ran "grails install-plugin joda-time" )
(它不作为全局插件安装 - 就像项目一样 - 至少我是这么认为的,我运行了“grails install-plugin joda-time”)
Many thanks in advance. 提前谢谢了。
PS Currently listening to Plug In Baby by Muse....how coincidental :D PS目前正在听Muse的Plug In Baby ....多么巧合:D
The plugin is listed in application.properties, so when someone gets your code Grails will install missing plugins the first time they run 'grails run-app' or other commands. 该插件列在application.properties中,因此当有人获取您的代码时,Grails会在第一次运行'grails run-app'或其他命令时安装缺少的插件。
If you want to revert to 1.0.x behavior just create grails-app/conf/BuildConfig.groovy with the line 如果你想恢复到1.0.x的行为,只需使用该行创建grails-app / conf / BuildConfig.groovy
grails.project.plugins.dir='plugins'
and your plugins will be in with the rest of the project files. 并且您的插件将与其余的项目文件一起使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.