Project Templates

Liferay provides project templates that you can use to generate starter projects formatted in an opinionated way. These templates can be used by most build tools (e.g., Gradle, Maven, Liferay Dev Studio CE) to generate your desired project structure.

Some popular project templates include

  • API project
  • Fragment project
  • MVC Portlet project
  • Service Builder project
  • Template Context Contributor project
  • Theme project (WAR)
  • etc.

If you’re using Blade CLI, execute the following command to display a full list of project templates:

blade create -l

If you’re using Maven, you can view and use the project templates as Maven archetypes. Execute the following command to list them:

mvn archetype:generate -Dfilter=liferay

Archetypes with the com.liferay.project.templates prefix are the latest templates offered by Liferay.

If you’re using Liferay Dev Studio CE, navigate to FileNewLiferay Module Project and view the project templates from the Project Template Name drop-down menu.

In this section of reference articles, each project template is outlined with the appropriate generation command and folder structure. Visit the project template article you’re most interested in to start building your own project!

Activator Template

In this article, you’ll learn how to create a Liferay activator as a Liferay module. To create a Liferay activator via the command line using Blade CLI or Maven, use one of the commands with the...

Weiterlesen

API Template

In this tutorial, you’ll learn how to create a Liferay API as a Liferay module. To create a Liferay API via the command line using Blade CLI or Maven, use one of the commands with the following...

Weiterlesen

Control Menu Entry Template

In this article, you’ll learn how to create a Liferay Control Menu entry as a Liferay module. To create a Liferay Control Menu entry via the command line using Blade CLI or Maven, use one of the...

Weiterlesen

Form Field Template

In this article, you’ll learn how to create a Liferay form field as a Liferay module. To create a Liferay form field via the command line using Blade CLI or Maven, use one of the commands with the...

Weiterlesen

Fragment Template

In this article, you’ll learn how to create a Liferay fragment as a Liferay module. You can learn more about fragment modules in the Declaring a Fragment Host article and in section 3.14 of the...

Weiterlesen

FreeMarker Portlet Template

In this article, you’ll learn how to create a Liferay FreeMarker portlet application as a Liferay module. To create a Liferay FreeMarker portlet application via the command line using Blade CLI or...

Weiterlesen

Layout Template

In this article, you’ll learn how to create a Liferay layout template as a WAR project. To create a Liferay layout template via the command line using Blade CLI or Maven, use one of the commands...

Weiterlesen

Modules Ext Template

In this article, you’ll learn how to create an Ext module. To create an Ext module via the command line using Blade CLI or Maven, use one of the commands with the following parameters: blade create...

Weiterlesen

MVC Portlet Template

In this article, you’ll learn how to create a Liferay MVC portlet application as a Liferay module. To create a Liferay MVC portlet application via the command line using Blade CLI or Maven, use one...

Weiterlesen

npm Angular Portlet Template

In this article, you’ll learn how to create an npm Angular portlet as a Liferay module. To create an npm Angular portlet via the command line using Blade CLI or Maven, use one of the commands with...

Weiterlesen

npm React Portlet Template

In this article, you’ll learn how to create an npm React portlet as a Liferay module. To create an npm React portlet via the command line using Blade CLI or Maven, use one of the commands with the...

Weiterlesen

npm Vue.js Portlet Template

In this article, you’ll learn how to create an npm Vue.js portlet as a Liferay module. To create an npm Vue.js portlet via the command line using Blade CLI or Maven, use one of the commands with...

Weiterlesen

Panel App Template

In this article, you’ll learn how to create a Liferay panel app and category as a Liferay module. To create a Liferay panel app and category via the command line using Blade CLI or Maven, use one...

Weiterlesen

Portlet Configuration Icon

In this article, you’ll learn how to create a Liferay portlet configuration icon as a Liferay module. To create a portlet configuration icon via the command line using Blade CLI or Maven, use one...

Weiterlesen

Portlet Provider Template

In this article, you’ll learn how to create a Liferay portlet provider as a Liferay module. To create a Liferay portlet provider via the command line using Blade CLI or Maven, use one of the...

Weiterlesen

Portlet Template

In this article, you’ll learn how to create a Liferay portlet application as a Liferay module. To create a Liferay portlet application via the command line using Blade CLI or Maven, use one of the...

Weiterlesen

Portlet Toolbar Contributor Template

In this article, you’ll learn how to create a Liferay portlet toolbar contributor as a Liferay module. To create a portlet toolbar contributor entry via the command line using Blade CLI or Maven,...

Weiterlesen

REST Template

In this article, you’ll learn how to create a Liferay RESTful web service packaged in a Liferay module. To create a Liferay RESTful web service via the command line using Blade CLI or Maven, use...

Weiterlesen

Service Builder Template

In this article, you’ll learn how to create a Liferay portlet application that uses Service Builder as Liferay modules. To create a Liferay Service Builder project via the command line using Blade...

Weiterlesen

Service Template

In this article, you’ll learn how to create a Liferay service as a Liferay module. To create a Liferay service via the command line using Blade CLI or Maven, use one of the commands with the...

Weiterlesen

Service Wrapper Template

In this article, you’ll learn how to create a Liferay service wrapper as a Liferay module. To create a Liferay service wrapper via the command line using Blade CLI or Maven, use one of the commands...

Weiterlesen

Simulation Panel Entry Template

In this article, you’ll learn how to create a Liferay simulation panel entry as a Liferay module. To create a simulation panel entry via the command line using Blade CLI or Maven, use one of the...

Weiterlesen

Social Bookmark Template

In this article, you’ll learn how to create a Liferay social bookmark as a Liferay module. To create a social bookmark as a module via the command line using Blade CLI or Maven, use one of the...

Weiterlesen

Soy Portlet Template

In this article, you’ll learn how to create a Soy portlet application as a Liferay module. To create a Soy portlet as a module via the command line using Blade CLI or Maven, use one of the commands...

Weiterlesen

Spring MVC Portlet Template

In this article, you’ll learn how to create a Liferay Spring MVC portlet application as a WAR. To create a Liferay Spring MVC portlet via the command line using Blade CLI or Maven, use one of the...

Weiterlesen

Template Context Contributor Template

In this article, you’ll learn how to create a Liferay template context contributor as a Liferay module. To create a template context contributor via the command line using Blade CLI or Maven, use...

Weiterlesen

Theme Contributor Template

In this article, you’ll learn how to create a Liferay theme contributor as a Liferay module. To create a theme contributor via the command line using Blade CLI or Maven, use one of the commands...

Weiterlesen

Theme Template

In this article, you’ll learn how to create a Liferay theme as a WAR project. To create a Liferay theme via the command line using Blade CLI or Maven, use one of the commands with the following...

Weiterlesen

WAR Hook Template

In this article, you’ll learn how to create a Liferay WAR hook project. To create a Liferay WAR hook via the command line using Blade CLI or Maven, use one of the commands with the following...

Weiterlesen

WAR MVC Portlet Template

In this article, you’ll learn how to create a Liferay MVC portlet project as a WAR file. To create a Liferay MVC portlet project as a WAR via the command line using Blade CLI or Maven, use one of...

Weiterlesen
0 (0 Stimmen)
XML Formatter Plugin Zurück