how use a custom module in another custom module in another workspace?

thumbnail
mokhtar hatampoor, modified 1 Year ago. Junior Member Posts: 32 Join Date: 12/27/07 Recent Posts

hi

i work on liferay 7.3.7

in fact i want use a custom module classes, in liferay module source (for example in dynamic-data-mapping-form-web).

how can i config dependency for this perpose?

 

thumbnail
Jamie Sammons, modified 9 Months ago. New Member Posts: 3 Join Date: 12/6/24 Recent Posts

Hi mokhtar hatampoor,

To use a custom module from one workspace in another, install the module in the target workspace using a package manager like pip. Once installed, you can import the module into your code just like any other installed package.

I recommend the following blog with information about how to do it: https://www.surekhatech.com/blog/how-to-use-custom-module-one-workspace-to-another-in-liferay-7-4 

Note: For this, you must have ownership of the module you are using in different workspaces. For example, in this case, SurekhaTech owns the common service module to use across various workspaces.