简体   繁体   English

在Liferay上部署JSR 286 portlet

[英]Deploying a JSR 286 portlet on Liferay

Is it possible to deploy any JSR 286 complaint portlet and not specifically Liferay portlet (created using eclipse plugin etc) without any changes in project files or directory structure? 是否有可能部署任何JSR 286投诉portlet而不是专门的Liferay portlet(使用eclipse插件创建等)而不对项目文件或目录结构进行任何更改?

If it is not possible, are there any step by step procedure to convert any portlet to a Liferay compatible portlet? 如果不可能,是否有任何一步一步的过程将任何portlet转换为Liferay兼容的portlet?

Yes, it is possible: you just need to deploy the WAR file in your Liferay deployment dir or through the interface. 是的,有可能:您只需要在Liferay部署目录中或通过界面部署WAR文件。 Some time ago I wrote a tutorial about portlets, created some JSR 286-compatible ones and deployed them. 前段时间我写了一篇关于portlet的教程,创建了一些与JSR 286兼容的教程并进行了部署。 Maybe they can help you . 也许他们可以帮助你 (Note, however, that for exploring some properties of Liferay these portlets has no web.xml descriptor - they will work in Liferay, but not elsewhere. Just add the descriptor if needed). (但是,请注意,为了探索Liferay的某些属性,这些portlet没有web.xml描述符 - 它们可以在Liferay中工作,但不能在其他地方工作。只需添加描述符(如果需要))。

Mind you, due to bug LPS-60897 in Liferay's resources importer module, this will not work as advertised (at least in Liferay 6.2). 请注意,由于Liferay资源导入器模块中的LPS-60897错误,这不会像宣传的那样起作用(至少在Liferay 6.2中)。 See also the forum thread that led to the bug report. 另请参阅导致错误报告的论坛帖子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM