Liferay 导出/导入 LAR:自动化
有没有办法从liferay服务器A创建/导出LAR并使用脚本甚至maven/hudson插件将其导入liferay服务器B?我正在使用 Liferay 6.0.5。
谢谢, 斯泰因
is there a way to create/export a LAR from liferay server A and import this in liferay server B with a script or even a maven/hudson plugin? I'm using Liferay 6.0.5.
thanks,
Stijn
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
实现您想要的效果的最佳方法是利用远程发布的调度。您可以在管理页面 portlet 中找到此选项。
The best way to achieve what you want is to make use of scheduling for remote publication. You can find this option in the manage pages portlet.
请记住,您可以在 Liferay 中部署 servlet。我会将 war 文件打包为“web”插件,如 这篇关于 Nabble 的文章 以便访问 Liferay API。从这里您可以执行您想要的任何工作单元,其中导出 lar 文件。使用适当的参数调用 servlet URL,然后您就可以了。
Keep in mind that you can deploy servlets in Liferay. I would package the war file as a "web" plugin as described in this article on Nabble in order to access the Liferay APIs. From here you could perform whatever units of work you want, of which exporting a lar file. Call the servlet URL with the appropriate parameters and you're g2g.
您可以参考以下 Liferay 资源来获取 Liferay API 的详细信息:
http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/service/LayoutLocalServiceUtil.html
https://github.com/liferay/liferay-portal/blob/master/portal -impl/src/com/liferay/portal/staging/StagingImpl.java
You may refer to following Liferay resources to get details of Liferay API:
http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/service/LayoutLocalServiceUtil.html
https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/staging/StagingImpl.java