Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Liferay Export/Import LAR: automated

Tags:

liferay

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

like image 827
Stijn Geukens Avatar asked Sep 24 '10 08:09

Stijn Geukens


2 Answers

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.

like image 169
FoX Avatar answered Nov 07 '22 09:11

FoX


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.

like image 43
stackfish Avatar answered Nov 07 '22 07:11

stackfish