shell脚本,更新工程、打包、重启tomcat
#!/bin/sh#=====================================#svn update,maven package,tomcat start#=====================================cd ~/work/project/project-web#svn up settings.xml#cp -f settings.xml ~/.m2/cd ~/work/project-websvn upmvn -U -Ptest -Dmaven.test.skip=true clean packageif [ $? != 0 ]; then echo "error!" exit 1ficd $CATALINA_BASE/bin./shutdown.shsleep 5killall -9 java./startup.sh