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?
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>