title: Deploy Liferay Portlet wars via Jenkins?
body: <p>We are trying to automate the process of deploying the generated war files via Jenkins to web server. I was able to achieve the same for normal war files using Deploy plugin over tomcat server. </p>
  
  <p>For Liferay portlet war files, I can't use the same plugin as we put war files into deploy folder in liferay and then it gets copied over to tomcat webapps folder.</p>
  
  <p>Another approach I see is to add the deploy path in pom.xml    <code>&lt;properties&gt;
          &lt;liferay.auto.deploy.dir&gt;${deployPath}&lt;/liferay.auto.deploy.dir&gt;
          &lt;liferay.version&gt;6.1.0&lt;/liferay.version&gt;
      &lt;/properties&gt;</code> and then run the maven command <strong>mvn package liferay:deploy</strong> to copy to deploy directory. </p>
  
  <p>Do you have any other option or thoughts, Thanks!</p>