Foros de discusión

How to update portlet automatically without marketplace?

Patrick Warnecke, modificado hace 11 años.

How to update portlet automatically without marketplace?

New Member Mensajes: 20 Fecha de incorporación: 30/11/12 Mensajes recientes
Hi,
my company is planning to switch with our product to a portal system. One of our concerns, wich I am currently evaluating, is if there is a possibility to update our portlet automatically without the marketplace. (The first deployment will most likely be always done by ourselves, cause chances are high that the product needs certain customer specific configuration, but after the first deployment we want the portlets to check themselves if the need an update or not and do it.)
We're not entirly sure as of yet, but the chances are high that out product will be split up into mutliple portlets and we don't want to publish these portlet in the marketplace.
Firstly would be the cost to hight (the 20% fee) and secondly you still need a certain setup of our portlet to actually use them. (I hope everybody gets my point, I'm a trainee and english isn't my first language.)
The software catalog and update manager are out of the question, at least to my understanding, because they will be removed or no longer supported in the near future.

In the server logs I can always see following two lines:
[PluginPackageUtil:1421] Checking for available updates
[PluginPackageUtil:1465] Finished checking for available updates in 1 ms

I thought this might be the kind of thing we want. Will this PluginPackageutil be supported in the future? Can it do automatic updates? And the most importan part, how do I hook into that thing?
A link to an instruction or something like that would be nice, I couldn't find anything until now.

Thanks in advance
regards
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: How to update portlet automatically without marketplace?

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Check the following properties in portal-ext.properties

#
# Input a list of Liferay plugin repositories separated by \n characters.
#
plugin.repositories.trusted=http://plugins.liferay.com/official
plugin.repositories.untrusted=http://plugins.liferay.com/community
Patrick Warnecke, modificado hace 11 años.

RE: How to update portlet automatically without marketplace?

New Member Mensajes: 20 Fecha de incorporación: 30/11/12 Mensajes recientes
Thanks for the reply, but that didn't help.
I added my local test repository, but it doesn't seem to have any effect at all??
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: How to update portlet automatically without marketplace?

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Have you followed the steps in liferay's online documentation?

http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/lp-6-1-ugen15-creating-your-own-plugin-repository-0
Patrick Warnecke, modificado hace 11 años.

RE: How to update portlet automatically without marketplace?

New Member Mensajes: 20 Fecha de incorporación: 30/11/12 Mensajes recientes
I just stumbled upon this plugin: http://www.liferay.com/marketplace/-/mp/application/15474932
With this I can now finally check my local repository (and yeah I followed the "steps" you mentioned already, but that didn't help). So this is a big step in the right direction. But now I face the problem that my repository or something seems to be misconfigured or the structure is not as needed, cause I see the two versions of my test portlet as different portlets and after I install any of the versions it isn't displayed as "installed".

My liferay-plugin-repository.xml in the root of the repository looks like:
<!--?xml version="1.0"?-->


<plugin-repository>
	<settings>
		<setting name="use-download-url" value="true"></setting>
	</settings>

	<plugin-package>
		<name>ObjectEditor</name>
		<module-id>incony-ag/pf-objecteditor-portlet/6.1.1.1/war</module-id>
		<types>
			<type>portlet</type>
		</types>
		<short-description>Meine Kurzbeschreibung</short-description>
		<change-log>Nothing major happened!</change-log>
		<page-url>http://localhost/repository/</page-url>
		<download-url>http://localhost/repository/incony-ag/pf-objecteditor-portlet/6.1.1.1/PF-ObjectEditor-portlet-6.1.1.1.war</download-url>
		<author>Patrick W.</author>
		<licenses>
			<license osi-approved="true">LGPL</license>
		</licenses>
		<liferay-versions>
			<liferay-version>6.1.1+</liferay-version>
		</liferay-versions>
	</plugin-package>
	<plugin-package>
		<name>ObjectEditor</name>
		<module-id>incony-ag/pf-objecteditor-portlet/6.1.1.2/war</module-id>
		<types>
			<type>portlet</type>
		</types>
		<short-description>Meine Kurzbeschreibung</short-description>
		<change-log>Nothing major happened!</change-log>
		<page-url>http://localhost/repository/</page-url>
		<download-url>http://localhost/repository/incony-ag/pf-objecteditor-portlet/6.1.1.2/PF-ObjectEditor-portlet-6.1.1.1.war</download-url>
		<author>Patrick W.</author>
		<licenses>
			<license osi-approved="true">LGPL</license>
		</licenses>
		<liferay-versions>
			<liferay-version>6.1.1+</liferay-version>
		</liferay-versions>
	</plugin-package>
	<plugin-package>
		<name>ObjectEditor</name>
		<module-id>incony-ag/pf-objecteditor-portlet/6.1.1.3/war</module-id>
		<types>
			<type>portlet</type>
		</types>
		<short-description>Meine Kurzbeschreibung</short-description>
		<change-log>Nothing major happened!</change-log>
		<page-url>http://localhost/repository/</page-url>
		<download-url>http://localhost/repository/incony-ag/pf-objecteditor-portlet/6.1.1.3/PF-ObjectEditor-portlet-6.1.1.1.war</download-url>
		<author>Patrick W.</author>
		<licenses>
			<license osi-approved="true">LGPL</license>
		</licenses>
		<liferay-versions>
			<liferay-version>6.1.1+</liferay-version>
		</liferay-versions>
	</plugin-package>
</plugin-repository>


The folder structure in the repo is then:
./incony-ag/pf-objecteditor-portlet/6.1.1.1/PF-ObjectEditor-portlet-6.1.1.1.war
./incony-ag/pf-objecteditor-portlet/6.1.1.2/PF-ObjectEditor-portlet-6.1.1.1.war
./incony-ag/pf-objecteditor-portlet/6.1.1.3/PF-ObjectEditor-portlet-6.1.1.1.war

In every of the mentioned .war-Files I've got a WEB-INF/lifer-plugin-repository.xml with the same content as the .xml above. Besides that the portlet is basically a default portlet created by the SDK.
Is the problem maybe that I need a pom.xml somewhere? Do I have to lay out the repo structure differently?

Thanks in advance again!