Foren

Cannot found "portlet.xml" in portlet liferay 7

thumbnail
Pika chu, geändert vor 7 Jahren.

Cannot found "portlet.xml" in portlet liferay 7

New Member Beiträge: 13 Beitrittsdatum: 09.03.17 Neueste Beiträge
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, geändert vor 7 Jahren.

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

Regular Member Beiträge: 133 Beitrittsdatum: 25.06.15 Neueste Beiträge
In LIferay 7 all the configuration related to liferay-portlet.xml, liferay-display.xml, portlet.xml are stored in portlet class.
thumbnail
James Hinkey, geändert vor 7 Jahren.

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

Junior Member Beiträge: 62 Beitrittsdatum: 15.02.11 Neueste Beiträge
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, geändert vor 5 Jahren.

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

Junior Member Beiträge: 25 Beitrittsdatum: 26.09.18 Neueste Beiträge

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

ronak vora, geändert vor 5 Jahren.

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

Junior Member Beiträge: 25 Beitrittsdatum: 26.09.18 Neueste Beiträge
RE: Cannot found "portlet.xml" in portlet liferay 7
thumbnail
Cody Hoag, geändert vor 5 Jahren.

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

Junior Member Beiträge: 70 Beitrittsdatum: 26.04.12 Neueste Beiträge

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?