Showing posts with label Module. Show all posts
Showing posts with label Module. Show all posts

Tuesday, 29 August 2017

Deploying liferay 7(Gradle) module to tomcat

Deploying liferay 7(Gradle) module to tomcat

Their are 2 option available to deploy liferay module.

Option 1:Configure gradle.properties file available in liferay workspace.
We need to set 2 properties in gradle.properties file
  1. liferay.workspace.home.dir 
  2. liferay.workspace.modules.default.repository.enabled

Set liferay.workspace.home.dir to your tomcat directory

  • Example
  • liferay.workspace.home.dir=D:\\LiferayDXP\\liferay-dxp-digital-enterprise-tomcat-7.0-ga1-20160617092557801\\liferay-dxp-digital-enterprise-7.0-ga1


Set liferay.workspace.modules.default.repository.enabled=true

  • Now Open Eclipse IDE go to Windows--show view--click on Gradle Task.


  • Gradle Task will list all your module.Select the module you want to build and deploy.
  • Click build this will build jar of the selected module in libs folder located in , LiferayWorkspace--modules--(Selected Module)--build--libs in your local directory
  • Click on deploy from gradle task this will place generated jar in deploy folder of tomcat (if you have configure above mention properties)

Option 2 

  • If you dont want to set this path you can still build jar from gradle task,but you have to manually place generated jar in tomcat deploy directory.