GitHub Grails Plugins

If I want to use the plugin for Grails from the Git Hub. Am I just downloading a zip file and making it available in my local maven repository? I am behind a firewall that does not allow me to simply resolve dependencies.

+4
source share
5 answers

You should not build from a source repo, as this may include incomplete functions and errors. At the very least, use a source tagged for a specific release (if any).

If you want to download released plugins, they are available at http://repo.grails.org/grails/plugins/org/grails/plugins/

Keep in mind that running grails install-plugin /path/to/zip no longer works in version 2.3, so you should avoid this approach. Instead, you can run a local instance of Artifactory, which will act as a cached plugin repository - see this thread for some information: http://grails.1312388.n4.nabble.com/Caching-plugins-using-artifactory-td4640164. html

+3
source

You can get the source code and run maven-install to make it available in the local maven repository, after which you declare the dependency in the BuildConfig.groovy plugin BuildConfig.groovy .

+4
source

The mail file that will be downloaded will become the source of the plugin. You need to extract the zip, go to the root of the plugin and run grails maven-install (from the release plugin), which will create the plugin artifact for you in your local maven repository if you have one setting.

Then you can use the plugin.

OR

You can use the built-in plugin as indicated in this answer .

+1
source

Proxy server configuration can also be configured in grails by adding a proxy server and installing a proxy server.

grails add-proxy myproxy "--host = myproxy" "--port = myport" "--username = proxyuser" "--password = mypassword" grails set-proxy myproxy see grails docs .

if the solution above does not work, try creating ProxySettings.groovy in the folder C: \ Documents and Settings \ user-name.grails

add the following two lines to this file and save

 myproxy=["http.proxyHost":"myproxy", "http.proxyPort":"4300", "http.proxyUserName":"proxyuser", "http.proxyPassword":"mypassword"] currentProxy="myproxy" 

please check this link for more options

+1
source

You can also locate plugins locally, as described here.

http://blog.armbruster-it.de/2011/10/project-setup-for-grails-with-customized-plugins-using-git-submodules/

 git submodule add git://github.com/sarmbruster/grails-spring-security-ui.git plugins/grails-spring-security-ui git add .gitmodules plugins/ git commit -m "added submodule" 

now add plugins / grails - spring-security-ui as a built-in plugin by adding to grails- app/conf/BuildConfig.groovy

 grails.plugin.location.'spring-security-ui'="plugins/grails-spring-security-ui" 

What all.

For more information, see “Installing local plug-ins” and “Specifying plug-in locations” in documents: http://grails.org/doc/latest/guide/plugins.html#12.1%20Creating%20and%20Installing%20Plug-ins

+1
source

Source: https://habr.com/ru/post/1499034/


All Articles