Fórum

Cannot found "portlet.xml" in portlet liferay 7

thumbnail
Pika chu, modificado 7 Anos atrás.

Cannot found "portlet.xml" in portlet liferay 7

New Member Postagens: 13 Data de Entrada: 09/03/17 Postagens Recentes
Hi all,
I am newbie in liferay and i have a question:
I want to use Spring MVC in liferay, i create a new portlet.
I read document and some tutorial, we must modify something in "portlet.xml" file.
But, i don't see "portlet.xml" file, please help me!
I use Liferay 7.
Thanks.
Here is my structure portlet:
thumbnail
Nirav Prajapati, modificado 7 Anos atrás.

RE: Cannot found "portlet.xml" in portlet liferay 7

Regular Member Postagens: 133 Data de Entrada: 25/06/15 Postagens Recentes
In LIferay 7 all the configuration related to liferay-portlet.xml, liferay-display.xml, portlet.xml are stored in portlet class.
thumbnail
James Hinkey, modificado 7 Anos atrás.

RE: Cannot found "portlet.xml" in portlet liferay 7

Junior Member Postagens: 62 Data de Entrada: 15/02/11 Postagens Recentes
In Liferay 7, you can develop Java EE WAR-style portlets (using frameworks such as Spring MVC and others) or develop portlets as OSGi modules.

You can use Blade CLI to generate a sample Spring MVC portlet: blade samples blade.portlet.springmvc

The sample has a portlet.xml file. It's listed in the attached folder structure image.

Portlets created as OSGi modules use @Component annotation properties to specify descriptors for the portlet. The HelloYouPortlet in tutorial Liferay as a Development Platform demonstrates this. See reference article Portlet Descriptor to OSGi Service Property Map to learn the properties that correspond to the portlet.xml descriptors.

See also:

Starting Module Development

Liferay MVC Portlet

Hope that helps.
Jim
ronak vora, modificado 5 Anos atrás.

RE: Cannot found "portlet.xml" in portlet liferay 7

Junior Member Postagens: 25 Data de Entrada: 26/09/18 Postagens Recentes

I have same problem ,  and i ama using maven with liferay 7.1. 
Please help me for this issue ???

ronak vora, modificado 5 Anos atrás.

RE: Cannot found "portlet.xml" in portlet liferay 7

Junior Member Postagens: 25 Data de Entrada: 26/09/18 Postagens Recentes
RE: Cannot found "portlet.xml" in portlet liferay 7
thumbnail
Cody Hoag, modificado 5 Anos atrás.

RE: Cannot found "portlet.xml" in portlet liferay 7

Junior Member Postagens: 70 Data de Entrada: 26/04/12 Postagens Recentes

I just tested generating a Spring MVC portlet with the latest Maven archetype. The portlet.xml file is stored in the src/main/webapp/WEB-INF  folder. Is it not available for you there when leveraging the archetype?