You can create a Liferay Workspace using the following tools:
Visit the appropriate section to learn how to create a workspace with the highlighted tool.
Blade CLI
-
Navigate to the folder where you want your workspace generated.
-
Run the following command to build a Gradle-based workspace:
blade init -v 7.2 [WORKSPACE_NAME]
You can also create a Maven-based workspace with Blade CLI. See the Maven section for more information.
Dev Studio
-
Select File → New → Liferay Workspace Project.
A New Liferay Workspace dialog appears, presenting several configuration options.
-
Give your workspace project a name.
-
Choose the location where you’d like your workspace to reside. Checking the Use default location checkbox places your Liferay Workspace in the Eclipse workspace you’re working in.
-
Select the build tool you want your workspace to be built with (i.e., Gradle or Maven).
-
Choose the Liferay Portal version you plan to develop for (i.e., 7.2, 7.1, or 7.0).
-
Select the specific target platform version corresponding to the GA release you’re developing for (e.g., 7.2.0 → 7.2 GA1). For more information on target platform benefits, see the Managing the Target Platform articles.
-
Check the Download Liferay bundle checkbox if you’d like to auto-generate a Liferay instance in your workspace. You’ll be prompted to name the server and provide the server’s download URL, if selected.
-
Check the Add project to working set checkbox if you want your workspace to be a part of a larger working set you’ve already created in Dev Studio. For more information on working sets, visit Eclipse Help.
-
Click Finish to create your Liferay Workspace.
A dialog appears prompting you to open the Liferay Workspace perspective. Click Yes, and your perspective will switch to Liferay Workspace.
IntelliJ
-
Open the New Project wizard by selecting File → New → Project. If you’re starting IntelliJ for the first time, you can do this by selecting Create New Project in the opening window.
-
Select Liferay from the left menu.
-
Choose the build type for your workspace (i.e., Gradle or Maven). Then click Next.
-
Specify your workspace’s name, location, intended Liferay DXP version, target platform, and SDK (i.e., Java JDK). Then click Finish.
-
A window opens for additional build configurations for the build type you selected (i.e., Gradle or Maven). Verify the settings and click OK.
Maven
-
Execute the following Maven command:
mvn archetype:generate -Dfilter=liferay
-
Select the
com.liferay.project.templates.workspace
archetype to generate. -
Step through the remaining prompts to generate the workspace project.
A Maven-based Liferay Workspace can also be generated using Blade CLI. Follow
Blade CLI’s workspace creation instructions and insert the -b maven
parameter in the Blade command.