New Liferay vs plugin project portlet

I use Eclipse and install the Liferay plugin and try to create a new portlet. I want Liferay IDE to pre-generate as much code as possible

Does anyone know what are the main differences between creating a new Liferay portlet and a Liferay plugin project?

+6
source share
2 answers

The Liferay Plugin Project allows you to create a project (portlet, theme, hook, etc.) with all the dependencies and settings that you need to start coding (or almost).

The Liferay portlet adds class portlet class ( portlet class) and possibly JSP to one of your plugin projects. But you have to tell the portlet how to use this class and jsp, and possibly many other missing settings.

I suggest you always use the Liferay Plugin Project, which is simpler and faster.

+5
source

I would rather use a different explanation than Marco:

A plug-in project is what you add to the IDE. Your real plugins live here. Eclipse organizes projects, and projects is a plugin for Liferay. Because the IDE interprets different projects differently (for example, stand-alone Java applications and Dynamic Web Projects, etc.), the Portlet Project or Thematic Project is simply added to this list.

When you have a plugin project (such as a Portlet), you can add as many portlets to it as you want. Thus, if you are developing portlets, you will always have at least one portlet. This portlet plugin can contain any number of portlets.

You will always deploy the entire plugin in Liferay - this fact may affect which portlets you want to group into one plugin.

+1
source

Source: https://habr.com/ru/post/976060/


All Articles