title: Copy WAR to Application Server
body: <p>Is there a way to automatically copy a WAR to a specified location after compiling it?</p>
  
  <p>I use the NetBeans IDE together with Maven for my Java EE programming and was wondering whether there was a way within Maven to do that. I use Ubuntu 15.04 as OS. The way I currently get the WAR to the Application Server is typing a copy command after compiling:</p>
  
  <pre><code>scp /home/user/.m2/repository/com/myproj/myapp/1.0/myapp-1.0.war user@appserver:/opt/wildfly-8.2.0.Final/standalone/deployments/myapp.war
  </code></pre>