留言板
Creating Plugins to extend Plugins - Maven
Nagendra Kumar Busam,修改在8 年前。
Creating Plugins to extend Plugins - Maven
Liferay Master 帖子: 678 加入日期: 09-7-7 最近的帖子
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
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
Andew Jardine,修改在8 年前。
RE: Creating Plugins to extend Plugins - Maven
Liferay Legend 帖子: 2416 加入日期: 10-12-22 最近的帖子
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?
That link appears to be incomplete or broken. Can you try it again so that I can see what you are referring to?
David H Nebinger,修改在8 年前。
RE: Creating Plugins to extend Plugins - Maven
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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.
I don't see anything over there which covers the "plugin extending plugin" concept for either the SDK or Maven.
Dominik Marks,修改在8 年前。
RE: Creating Plugins to extend Plugins - Maven
Regular Member 帖子: 149 加入日期: 12-8-29 最近的帖子
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
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
Andreas Lecerof,修改在8 年前。
RE: Creating Plugins to extend Plugins - Maven
Junior Member 帖子: 36 加入日期: 13-2-14 最近的帖子
The new extending plugin, what type should it be, a hook?
Should the original plugin be deleted from webapps?
Should the original plugin be deleted from webapps?
David H Nebinger,修改在8 年前。
RE: Creating Plugins to extend Plugins - Maven
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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.
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.
Andreas Lecerof,修改在8 年前。
RE: Creating Plugins to extend Plugins - Maven
Junior Member 帖子: 36 加入日期: 13-2-14 最近的帖子
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"... "
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"... "
David H Nebinger,修改在8 年前。
RE: Creating Plugins to extend Plugins - Maven
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
When you're extending a plugin, you can't have both deployed.
Undeploy the given one before deploying your new one.
Undeploy the given one before deploying your new one.