掲示板

Cannot found "portlet.xml" in portlet liferay 7

thumbnail
7年前 に Pika chu によって更新されました。

Cannot found "portlet.xml" in portlet liferay 7

New Member 投稿: 13 参加年月日: 17/03/09 最新の投稿
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
7年前 に Nirav Prajapati によって更新されました。

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

Regular Member 投稿: 133 参加年月日: 15/06/25 最新の投稿
In LIferay 7 all the configuration related to liferay-portlet.xml, liferay-display.xml, portlet.xml are stored in portlet class.
thumbnail
7年前 に James Hinkey によって更新されました。

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

Junior Member 投稿: 62 参加年月日: 11/02/15 最新の投稿
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
5年前 に ronak vora によって更新されました。

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

Junior Member 投稿: 25 参加年月日: 18/09/26 最新の投稿

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

5年前 に ronak vora によって更新されました。

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

Junior Member 投稿: 25 参加年月日: 18/09/26 最新の投稿
RE: Cannot found "portlet.xml" in portlet liferay 7
thumbnail
5年前 に Cody Hoag によって更新されました。

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

Junior Member 投稿: 70 参加年月日: 12/04/26 最新の投稿

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?