how do you automatically deploy Liferay portlets in Netbeans? Every time I build a project, have to copy .war file to Tomcat deploy directory in Liferay. Is it possible to deploy .war file automatically, when project is built?
1
votes
Check that app server related properties(auto.deploy.dir) in build.username.properties file of your plugin sdk are correct.
– Pankaj Kathiriya
@PankajKathiriya thank you for response, but where is build.username.properties? I don't use liferay plugin sdk. I have java ee maven project and use spring portlet mvc.
– Matt
Using maven you don't neet ant "auto.deploy.dir" variable
– Pierpaolo Cira
1 Answers
1
votes
What deployment system are you using? SDK or Maven?
If SDK, then create a file named build..properties inside your SDK root folder (note that must be replaced with your OS user username). In that file just set the absolute path of your application server
app.server.dir=/absolute/path/to/your/liferay/tomcat-x.x.xx
If you are using Maven, in your pom file be sure you are setting following (global or in-profile) properties:
<properties>
<liferay.version>x.y.z</liferay.version>
<liferay.auto.deploy.dir>/absolute/path/to/your/liferay/deploy</liferay.auto.deploy.dir>
<liferay.app.server.lib.global.dir>/absolute/path/to/your/liferay/tomcat-x.x.xx/lib/ext</liferay.app.server.lib.global.dir>
<liferay.app.server.portal.dir>/absolute/path/to/your/liferay/tomcat-x.x.xx/webapps/ROOT</liferay.app.server.portal.dir>
</properties>