Description :
A set of build scripts that make it easy to start a liferay 6.1 project based on the community edition To read more about why this template is organized the way it is, read the following blog post on the orange11 blog
Getting started :
-
Download ant
-
Set the following environment variables
ANT_HOME=/where/you/installed/ant
ANT_OPTS=-Xmx1024m -XX:MaxPermSize=512m
-
Add ant to your path
-
Download and unzip the build template on your local machine
-
Customize the template to suit your needs. Things you may want to change are
The name of the portal and portal host in
liferay-plugins-sdk/ext/portal-ext/docroot/WEB-INF/ext-impl/src/portal-ext.properties
The default locale and timezone in
liferay-plugins-sdk/ext/portal-ext/docroot/WEB-INF/ext-impl/src/portal-ext.properties
liferay-plugins-sdk/ext/portal-ext/docroot/WEB-INF/ext-impl/src/system-ext.properties
etc/conf/development/portal/bin/setenv.bat
etc/conf/development/portal/bin/setenv.sh
etc/conf/nightly/portal/bin/setenv.sh
etc/conf/production/portal/bin/setenv.sh
-
build the portal by issueing the following command in the template folder :
ant clean build
-
Create the mysql database by issueing the following commands as the root mysql user
drop database if exists liferay;
create database liferay default character set utf8;
grant all on liferay.* to liferay@localhost identified by 'liferay';
-
Start the portal by going to build/portal/apache-tomcat/bin and running
on windows :
catalina.bat run
or
catalina.bat jpda run
to start up in debug mode
on linux and osx :
./catalina.sh run
or
./catalina.sh jpda run
to start up in debug mode
-
To log in as administrator, go to http://localhost:8080 and log in with
username : [email protected]
password : s3cr3t
Or different credentials if you made changes to your portal-ext.properties file in step 5
-
Open the project in intellij idea and start working! Intellij project files are included in the template