留言板

Liferay portlet versioning

Mika Muurinen,修改在7 年前。

Liferay portlet versioning

New Member 帖子: 2 加入日期: 12-9-23 最近的帖子
Hello,

we are planning to have multiple Liferay instances, which has set of certain portlet versions. E.g one Liferay instance has portlet X versions 1.0 - 2.0 and the second instance has portlet X versions 3.0 - 4.0. Also, admin is not able to use earlier versions in the second portal instance.

I'd like to know easiest way to handle portlet versioning in instances. Any suggestions?

Br,
Mika
thumbnail
David H Nebinger,修改在7 年前。

RE: Liferay portlet versioning

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
Yeah, I'd avoid this kind of thing.

What you have are two different portlets, one for instance X and another for instance Y.

Don't try to get fancy w/ version handling nonsense, just see it as it is and keep things simple.
thumbnail
Fernando Fernandez,修改在7 年前。

RE: Liferay portlet versioning

Expert 帖子: 396 加入日期: 07-8-22 最近的帖子
Hi Mika,

I don't disagree with making it as simple as possible, but if you really need to have different versions of portlets running in different Liferay instances I'd suggest that you take care of this outside Liferay. For example: in instance A you need version 2, so you checkout that version from your version control system (svn, git, whatever), compile it and copy it to instance A "deploy" folder. This can be achieved very simply with shell scripts or with something like Jenkins.

HTH

Fernando
thumbnail
David H Nebinger,修改在7 年前。

RE: Liferay portlet versioning

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
This only works if "instances" are separate servers; if they are two instances in the same Liferay server this is not going to work.
thumbnail
Fernando Fernandez,修改在7 年前。

RE: Liferay portlet versioning

Expert 帖子: 396 加入日期: 07-8-22 最近的帖子
David H Nebinger:
This only works if "instances" are separate servers; if they are two instances in the same Liferay server this is not going to work.


Right. I read "instances" but only thought of "servers".

Fernando