Setup Liferay IDE

Okay guys, this is the third post about Setup Liferay and I hope you’ve successfully installing liferay and create your first custom portlet without liferay IDE. Now I will guide you to setup Liferay IDE. 

1. Download Liferay IDE in here

2. After downloaded, create new workspace to Liferay Home Directory (eg : D:\liferayRnd).

Select Project Workspace

Select Project Workspace

3. Go to menu Window – Preferences – Liferay – Installed Plugin SDK

Select Liferay Plugin Path

Select Liferay Plugin Path

4. Click Add and browse plugins to directory D:\liferayRnd\plugins

5. Create Liferay Runtime Environment, Window – Preferences – Server – Runtime Environment. Click Add and pointing to D:\liferayRnd\bundles\tomcat-7.0.42 directory.

Select Tomcat Home

Select Tomcat Home

6. You can start your liferay through IDE by click Start at the Servers Window.

Add Tomcat Liferay Server

Add Tomcat Liferay Server

Creating New Custom Portlet with IDE 

1. Click File – New – Other. Choose Liferay – Liferay Plugin Project

Select New Liferay Plugin Project

Select New Liferay Plugin Project

2. Click Next and fill up some information

Define New Portlet in Eclipse LIferay Plugin

Define New Portlet in Eclipse LIferay Plugin

3. Click Next,  as default Liferay is using Liferay MVC Framework but you can also using JSF 2 and Vaadin Framework

Add New LIferay MVC Portlet

Add New LIferay MVC Portlet

4. Click Finish, and custom portlet is ready to developed

5. To add a custom portlet in a portal you can right click on your tomcat server then choose Add and Remove, choose the custom portlet which you want to add and click Add – Finish

Add Portlet Into Servlet Container

Add Portlet Into Servlet Container

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>