Updating a web application on a remote server after Maven builds via SSH
Problem
After building the project using the Build server or on the local machine, you need to upload the resulting application to the test server.
Decision
Add a special profile to pom.xml, in which using the plugin
deployApp false maven-antrun-plugin deployApp package run org.apache.ant ant-jsch 1.7.1
put the application collected in the package phase on a remote server.
Maven needs to be started with the -P option deployApp
ЗЫ. When using ssh, a rake is possible if the container start command creates a new process (as it usually happens). Nohup helps in this case.