How to deploy third-party jar files in liferay?

I use some third-party jar files on my liferay portal. These jar files will be used from several portlets on my portal.

I know that I can put my jar file in my portlet / WEB -INF / lib. But the problem here is that it will only be available inside this portlet. I want the jar file to be available for all portlets in my portal. How can i do this? Is there any global library where I can deploy my jar file and can it be accessed from anywhere?

Also, how to deploy this third-party jar file to a production instance?

+4
source share
1 answer

You can do this in two ways (for distributing Tomcat):

  • Manually copy * .jar to the tomcat / lib / ext directory and restart Liferay
  • Record the Liferay extension and place the * .jar files in docroot / WEB-INF / ext-lib / global and deploy it before Liferay begins. This is a more preferable method that is not dependent on the web server.

Wim

+8
source

Source: https://habr.com/ru/post/1387530/


All Articles