Foros de discusión

Liferay portlet versioning

Mika Muurinen, modificado hace 7 años.

Liferay portlet versioning

New Member Mensajes: 2 Fecha de incorporación: 23/09/12 Mensajes recientes
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, modificado hace 7 años.

RE: Liferay portlet versioning

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
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, modificado hace 7 años.

RE: Liferay portlet versioning

Expert Mensajes: 396 Fecha de incorporación: 22/08/07 Mensajes recientes
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, modificado hace 7 años.

RE: Liferay portlet versioning

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
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, modificado hace 7 años.

RE: Liferay portlet versioning

Expert Mensajes: 396 Fecha de incorporación: 22/08/07 Mensajes recientes
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