(Quick Reference)

install-plugin

Purpose

Installs a plugin from the Grails central SVN repository, a file, or a URL

Examples

Propósito

Instala un plugin desde el repositorio SVN central de Grails, un fichero o una URL

Ejemplos

grails install-plugin shiro
grails install-plugin shiro 1.1
grails install-plugin ../grails-bar-1.0.zip
grails install-plugin http://foo.com/grails-bar-1.0.zip

Description

Usage:

Descripción

Uso:

grails install-plugin [name] [version]*
grails install-plugin [URL/File]

Fired Events:

  • StatusUpdate - Fired at various points during the plugin installation
  • StatusError - When an error occurs during plugin installation
  • StatusFinal - When the plugin is installed successfully
  • PluginInstalled - When the plugin is installed successfully

The install-plugin command is a versatile command that installs plugins from the Grails central SVN repository at http://svn.codehaus.org/grails-plugins/, a local file, or a remote URL.

To install a plugin from the remote central repository, for example the "shiro" plugin, use the install-plugin command followed by the plugin name:

  • StatusUpdate - Se activa en varios puntos durante la instalación del plugin
  • StatusError - Cuando ocurre un error durante la instalación del plugin
  • StatusFinal - Cuando el plugin es instalado satisfactoriamente
  • PluginInstalled - Cuando el plugin es instalado satisfactoriamente

El comando install-plugin es un comando versátil que instala plugin desde el repositorio SVN central de Grails http://svn.codehaus.org/grails-plugins/ , un fichero local o un URL remota.

Para instalae un plugin desde el repositorio central remoto, por ejemplo el plugin "shiro", usa el comando install-plugin seguido del nombre del plugin:

grails install-plugin shiro

This will install the latest version of the plugin. To install a specific version specify it as an argument:
Este instalará la última versión del plugin. Para instalar un versión específica se debe indicar como argumento:
grails install-plugin shiro 1.1

To find out what plugins are available use the list-plugins command.

To install from a URL, simply specify the absolute URL to the plugin package:

Para saber que plugins están disponibles usar el comando list-plugins.

Para instalar desde una URL, simplemente especifique la URL absoluta del paquete del plugin:

grails install-plugin http://foo.com/grails-bar-1.0.zip

To install from a local file, specify the absolute or relative path to the file:
Para instalar desde un fichero local, especifique el path absoluto o relativo del fichero:

grails install-plugin ../grails-bar-1.0.zip