_pwd=/mnt/build _ip=150.158.32.238 cd ../ mvn clean package scp target/build/*.jar root@${_ip}:${_pwd} #scp target/build/lib/*.* root@${_ip}:${_pwd}/lib ssh root@${_ip} "cd ${_pwd}; sh ./start.sh"