IntelliJ IDEA provides a New Liferay Modules wizard to create a variety of different module projects. You can also use the same wizard to create theme projects, WAR-style projects, and more. Before beginning, ensure you’ve created/imported a Liferay Workspace in your IntelliJ environment. Follow the steps below to create a Liferay DXP module:
Navigate to File → New → Liferay Module.
Select the project you want to create. Although the wizard characterizes itself for modules, there are many available projects that are not OSGi-based modules (e.g.,
war-mvc-portlet, etc.). See the Project Templates reference section for more information on the available templates.
Configure your project’s SDK (i.e., JDK), package name, class name, and service name, if necessary. Then click Next.
Give your project a name. Then click Finish.
Awesome! Your project is available under its project type folder in your workspace.