I wanted to try Grails-Currencies plugin. I found the source on GitHub https://github.com/ricardojmendez/grails-currencies . So, I downloaded the zip from there, renamed the zip according to the description in plugin.xml and ran the command:
grails install-plugin absolute path to the zip file. ( The Grails documentation refers to an online link which is an older version. So, preferred this method. )
I got a success message that the plugin is installed. But, I don't see any of the plugin files in my current project. None of the source files are installed into my project. I then understood that plugins actually just modify the application.properties file and registers the plugin there but maintains all the plugin related files in $HOME/.grails. Now my questions are:
Where do I find this $HOME/.grails folder ( am asking just out of curiosity as I didn't find any in Grails installation home folder.
How do I use or access the currency plugin files or it's features in my Grails application? Do I copy the plugin files ( once you help me find them ) into my current project and then work on them? If so, I can as well copy them from the GitHub zip I downloaded. So, basically how do I go about it while making sure I leverage Grails Currency plugin and keep my existing project intact.
Thanks in advance for your help.
First of all, the way you installed the plugin is not recommended. You should simply add this to your BuildConfig.groovy under plugins:
compile ":currencies:1.3.2"
This will set up the plugin to be installed. To get the files immediately, run this:
grails refresh-dependencies
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.