简体   繁体   English

如何设置我的grails插件的安装位置?

[英]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.

相关问题 如何在我的 Windows 机器上找到 JDK 的安装位置? - How do I find where JDK is installed on my windows machine? 两个vimfiles目录。 我在哪里安装插件? - Two vimfiles directories. Where do I install my plugins? vagrant插件安装在哪里? - Where are vagrant plugins installed? 在通过Chocolatey安装了emacs的Windows上,如何将.emacs文件放在Windows上? - Where do I place my .emacs file on Windows with emacs installed through chocolatey? 我应该在Windows的哪里放置SBT 0.13.13的全局插件? - Where do I put global plugins for SBT 0.13.13 on Windows? 如何在不使用SSH的Windows上设置存储库? - How should I set up my repositories on Windows without SSH? 我应该在哪里保存我的应用程序的数据? - Where should I save the data of my app? 如何以编程方式确定Windows中是否安装了Mono 64位及其安装位置? - How do I programmatically determine if and where Mono 64 bit is installed in Windows? 如何使用 cmd 提示符检查我的设备上安装了多少个 Python 版本? - How do I check how many versions of Python I have installed on my device using the cmd prompt? 我的 Window Machine 中没有安装 Outlook。 如何使用powershell发送邮件? - I do not have outlook installed in my Window Machine. How to send mail using powershell?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM