Their are 2 option available to deploy liferay module.
We need to set 2 properties in gradle.properties file
- liferay.workspace.home.dir
- 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.
Other useful post
Very helpful blog ..
ReplyDeleteThanks . Keep Posting ..
Thanks Sanket For Appreciation!!
Deletethanks, very helpful
ReplyDelete