With the purchase of a subscription to Liferay Digital Experience Platform (DXP), customers have access to Liferay Developer Studio, which is a set of Eclipse plugins designed to ease development with Liferay DXP.
This article documents the features included with Liferay Developer Studio and the steps for intallation, as well as instructions for how to create a Workplace and a portlet with Plugins SDK.
Included Features
Liferay Developer Studio 3.3.0-GA1
- Eclipse Oxygen
- Liferay IDE 3.3.1-ga2
- JPM
- BLADE
- Liferay Workspace
- Liferay DXP 7.1
Steps for Installation
- Download the bundle.
- Run the installer for your platform.
- Select your Java runtime.
- Select the directory to install Developer Studio.
- Choose if you would like to install Developer Studio only.
If choosing this option, steps 6-10 will be skipped.
- Add your liferay.com email address and password.
- Browse your activation key.
- Select if you would like to to config a proxy or not (Note: The proxy settings will be saved in
.gradle/gradle.properties
file under your home folder). - Finish the installation.
- Once it is finished the following will be installed.
- Blade CLI (installed into your system path)
- Liferay Workspace initialized directory (under
$install_dir/liferay-workspace
) - Developer Studio application
Resolution
Creating a Liferay Workspace With Developer Studio
- Click File > New > Liferay Workspace Project
- Workspace Name: LiferayWorkspace
- Check the Download Liferay Bundle box.
- Click Finish.
- Once the process is completed, there is a bundles folder inside the Liferay Workspace folder where the projects can be deployed.
Note: There will be a popup dialog prompting users to switch to Liferay Workspace if the current perspective is different.
- Create a module project. Go to File > New > Liferay Module Project
- Project name: testModuleInLS
- Select a project template: (mvcportlet is the default).
- Click Next.
- Enter the following:
- Component Class Name:
Testmoduleinlsmvcportlet
- Package Name:
com.example
- Component Class Name:
- Add the following properties:
- Click Add Property Key
- Input a property name and value
- Click Finish
- Check the modules
- There is a modules folder inside the Workspace folder where all modules are located.
- Project deployment
- To deploy the project, click on the root of the project and drag it from the project explorer onto the Liferay runtime environment in the server view. Look for the following:
STARTED testmoduleinls_1.0.0
- To deploy the project, click on the root of the project and drag it from the project explorer onto the Liferay runtime environment in the server view. Look for the following:
Creating Portlets With Plugins SDK
Portlet creation using the Plugins SDK is simple. There is a portlets folder inside the Plugins SDK folder where the portlet projects reside. The first thing to do is give a project name (without spaces) and a display name (which can have spaces).Once portlet has been name, begin creating the project using Developer Studio.
In Developer Studio:
- Go to File > New... > Liferay Plugin Project
- Project name: my-hell0-world
- Display name: My Hello World
- Select the Build Type (plugins-sdk)
- Select the plug-in type (portlet is default)
- Click Next
- Choose a framework for the project.
- Click Finish
-
Additional Step!
If you did not import the SDK location, please click next and import it. Then click Finish.