简体   繁体   English

我可以在WAR文件中打包多个Liferay portlet和主题吗?

[英]Can I package multiple Liferay portlets and a themes in a WAR file?

I can easily create Liferay portlets and themes individually using the Liferay plugin SDK. 我可以使用Liferay插件SDK轻松创建Liferay portlet和主题。 I have managed to combine multiple portlets into one WAR file which has been pretty convenient for deployment at client sites. 我已经设法将多个portlet组合成一个WAR文件,这对于在客户端站点部署非常方便。

I have also created multiple themes for my Liferay installation and I was wondering if it's possible to combine all the portlets(5) and themes(2) ( perhaps hooks etc ) into one WAR file? 我还为Liferay安装创建了多个主题,我想知道是否可以将所有portlet(5)和主题(2)(可能是钩子等)组合到一个WAR文件中?

I dont think theme and portlets can be packaged together and it shouldnt be packaged together for better maintenance. 我不认为主题和portlet可以打包在一起,它不应该打包在一起以便更好地维护。

You can always package portlet and hook together in a single plugin project. 您始终可以在单个插件项目中打包portlet和挂钩。 I normally do it if the functionality in hook is tied with the portlet, otherwise I keep it separate. 如果挂钩中的功能与portlet绑定,我通常会这样做,否则我将它保持独立。

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

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