Foros de discusión

Cannot found "portlet.xml" in portlet liferay 7

thumbnail
Pika chu, modificado hace 7 años.

Cannot found "portlet.xml" in portlet liferay 7

New Member Mensajes: 13 Fecha de incorporación: 9/03/17 Mensajes recientes
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:

Archivos adjuntos:

thumbnail
Nirav Prajapati, modificado hace 7 años.

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

Regular Member Mensajes: 133 Fecha de incorporación: 25/06/15 Mensajes recientes
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 hace 7 años.

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

Junior Member Mensajes: 62 Fecha de incorporación: 15/02/11 Mensajes recientes
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 hace 5 años.

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

Junior Member Mensajes: 25 Fecha de incorporación: 26/09/18 Mensajes recientes

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

ronak vora, modificado hace 5 años.

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

Junior Member Mensajes: 25 Fecha de incorporación: 26/09/18 Mensajes recientes
RE: Cannot found "portlet.xml" in portlet liferay 7
thumbnail
Cody Hoag, modificado hace 5 años.

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

Junior Member Mensajes: 70 Fecha de incorporación: 26/04/12 Mensajes recientes

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?