Setting Up Clarity's Developer Workspace
You can create a Liferay Workspace from scratch using Blade CLI commands or Liferay Developer Studio. Clarity plans to experiment with both methods to determine the best approach for their needs. Here, you’ll practice creating workspaces using both methods.
Exercise: Creating Liferay Workspaces Using Blade
-
Open a terminal window.
-
Navigate to the location where you want to create your workspace.
-
Run this command:
This returns a list of available Liferay products and versions you can use for your workspace:
Alternatively, if you know your Liferay version, you can specify it as part of your blade init command (e.g., -v dxp-2024.q3.6). -
Enter
1
to select the latest version.
Tip: Unless you need a specific version, Liferay recommends the latest release. -
Verify a new folder called clarity-blade-workspace appears.
This generates a new folder with all the files needed for your workspace:
Exercise: Create Liferay Workspaces Using Liferay Developer Studio
-
Open Liferay Developer Studio.
-
Select the directory you want to use for your workspace.
-
Click Launch.
-
In the Welcome window, click New Liferay Workspace.
-
Alternatively, open the File drop-down menu and select New → Liferay Workspace Project.
-
For project name, enter clarity-lds-workspace.
-
For build type, select Gradle.
-
For product version, select dxp-2023.q3.9.
-
Click Finish.
-
Verify the workspace appears in the Project Explorer panel:
Exercise: Import Existing Workspaces into Liferay Developer Studio
You can also import existing workspaces into Liferay Developer Studio. Here, you’ll import clarity-blade-workspace.
-
Open the File drop-down menu and select Open Projects from File System.
-
For Import Source, select the clarity-blade-workspace project.
-
Click Finish.
-
Verify the workspace appears in the Project Explorer panel:
Conclusion
Great! You've successfully created Liferay Workspaces using both Blade CLI and Liferay Developer Studio. Next, you'll learn how to manage workspace versions and ensure you're always working with the latest features and improvements.
Capabilities
Product
Education
Contact Us