Foros de discusión

Creating Plugins to extend Plugins - Maven

thumbnail
Nagendra Kumar Busam, modificado hace 8 años.

Creating Plugins to extend Plugins - Maven

Liferay Master Mensajes: 678 Fecha de incorporación: 7/07/09 Mensajes recientes
Hi,

We are using maven build tool & Liferay EE 6.2 SP9.
we want to extend existing plugin https://github.com/liferay/liferay-plugins/tree/master/portlets/so-portlet as shown in below link

https://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/creating-plugins-to-extend-plugins-liferay-portal-6-2-dev-guide-03-en


documentation link is as per ant build tool,

If any body has done this/can share any inputs, that will be very much helpful

Thanks,
- Nagendra Busam
thumbnail
Andew Jardine, modificado hace 8 años.

RE: Creating Plugins to extend Plugins - Maven

Liferay Legend Mensajes: 2416 Fecha de incorporación: 22/12/10 Mensajes recientes
Hi Nagendra,

That link appears to be incomplete or broken. Can you try it again so that I can see what you are referring to?
thumbnail
David H Nebinger, modificado hace 8 años.

RE: Creating Plugins to extend Plugins - Maven

Liferay Legend Mensajes: 14916 Fecha de incorporación: 2/09/06 Mensajes recientes
That post went up before the doco was changed over to the new dev site...

I don't see anything over there which covers the "plugin extending plugin" concept for either the SDK or Maven.
thumbnail
Dominik Marks, modificado hace 8 años.

RE: Creating Plugins to extend Plugins - Maven

Regular Member Mensajes: 149 Fecha de incorporación: 29/08/12 Mensajes recientes
Hello,

I just wrote a blog post how to do it with Maven: https://www.liferay.com/de/web/d.marks/blog/-/blogs/creating-plugins-to-extend-plugins-the-maven-way

Hope that helps...

Regards,
Dominik
thumbnail
Andreas Lecerof, modificado hace 8 años.

RE: Creating Plugins to extend Plugins - Maven

Junior Member Mensajes: 36 Fecha de incorporación: 14/02/13 Mensajes recientes
The new extending plugin, what type should it be, a hook?
Should the original plugin be deleted from webapps?
thumbnail
David H Nebinger, modificado hace 8 años.

RE: Creating Plugins to extend Plugins - Maven

Liferay Legend Mensajes: 14916 Fecha de incorporación: 2/09/06 Mensajes recientes
No, it should match the plugin type.

If you're extending a portlet, use the portlet. If you're extending just a hook, use a hook. If it's a portlet plus anything else, use a portlet.
thumbnail
Andreas Lecerof, modificado hace 8 años.

RE: Creating Plugins to extend Plugins - Maven

Junior Member Mensajes: 36 Fecha de incorporación: 14/02/13 Mensajes recientes
I'm trying to extend the calendar-portlet (EE) because of missing translations into Swedish.
Is this the appropriate way of solving my problem?
When I did the extension as a hook I could deploy the portlet fine but I couldn't see any translations. Whe I did the extension as a portlet and deployed I got: "...HotDeployException... Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/catalina/loader/WebappClassLoader) previously initiated loading for a different type with name "javax/portlet/PortletConfig"... "
thumbnail
David H Nebinger, modificado hace 8 años.

RE: Creating Plugins to extend Plugins - Maven

Liferay Legend Mensajes: 14916 Fecha de incorporación: 2/09/06 Mensajes recientes
When you're extending a plugin, you can't have both deployed.

Undeploy the given one before deploying your new one.