Forums de discussion

Liferay portlet versioning

Mika Muurinen, modifié il y a 7 années.

Liferay portlet versioning

New Member Publications: 2 Date d'inscription: 23/09/12 Publications récentes
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, modifié il y a 7 années.

RE: Liferay portlet versioning

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
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, modifié il y a 7 années.

RE: Liferay portlet versioning

Expert Publications: 396 Date d'inscription: 22/08/07 Publications récentes
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, modifié il y a 7 années.

RE: Liferay portlet versioning

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
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, modifié il y a 7 années.

RE: Liferay portlet versioning

Expert Publications: 396 Date d'inscription: 22/08/07 Publications récentes
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