liferay-exploded: Quick deployment to Liferay
Dependency :
compile ":liferay-exploded:0.8"
Summary
Installation
You need to setup The plugin can be installed with the following command.
LIFERAY_HOME environment variable to point the top directory of liferay-portal installation.(set up the environment variable. For example, add the following line
in $HOME/.profile in case of sh/bash)
export LIFERAY_HOME=/path_to/liferay-portal-5.2.2grails install-plugin liferay-exploded
portletsandportlets-liferayplugins are also installed.
Description
Portlets plugins source code has migrated from svn repo https://svn.codehaus.org/grails-plugins to github https://github.com/grails-portlets-plugin. If you plan to improve the codebase, please create a JIRA ticket to request github access with your github id. If you join the team, you can update the codebase directly rather than creating a pull request.
Overview
This plugin allows the changes made to grails project to be reflected to the portlet running on Liferay without packaging and manual deployment.This plugin is designed for development use only. The hot deployment feature of Tomcat causes memory leak and you'll getOutOfMemoryErrordue to the exhaustion of PermGen space after several re-deployments. In that case, please restart Tomcat. Bumping up-XX:MaxPermSizein JVM parameter may defer the error.
Commands
liferay-deploy
This commands performs the following three steps.- Invoke
grails war, and explode the war file intotarget/explodeddirectory. - Generate Liferay specific configurations in the exploded war, and make modifications to the existing configuration files such as
web.xml. - Generate Tomcat context xml file, and copy it to
$LIFERAY_HOME/tomcat-x.x.x/conf/Catalina/localhostdirectory.
liferay-update
This command detects the changes made tograils-app/portlets , grails-app/views , and grails-app/i18n , copy them to the exploded war file. Liferay's hot deployer automatically picks up the changes and re-deploy the portlet.Usage
First, you need to start up a Liferay Portal server.cd $LIFERAY_HOME/tomcat-5.5.27/bin ./startup.sh
This plugin leverages Liferay's HotDeployer for Tomcat. It doesn't work with other application servers.
grails create-project Test1 cd Test1 grails install-plugin liferay-exploded grails create-portlet My grails generate-portlet-views My grails liferay-deploy
grails liferay-update
catalina.out .23:29:17,868 INFO [PortletHotDeployListener:219] Registering portlets for Test1 23:29:18,379 INFO [PortletHotDeployListener:303] 2 portlets for Test1 are available for use
History
Version 0.8 (06-25-2009)
- Fixed the issue that LIFERAY_HOME is not found on Windows.