mvn打包脚本

#!/bin/bash


cd /home/project/fight_cancer_end/trunk


svn update

echo -e "\033[31msvn up success\033[0m"



mvn clean

echo -e "\033[31mmvn clean success\033[0m"



mvn  -Ptest package -Dmaven.test.skip=true

echo -e "\033[31mmvn package success\033[0m"


rm -rf /usr/local/apps/fight_cancer_end.war

echo -e "\033[31mdelete fight_cancer_end.war\033[0m"

rm -rf /usr/local/apps/fight_cancer_end

echo -e "\033[31mdelete fight_cancer_end\033[0m"


cp /home/project/fight_cancer_end/trunk/target/fight_cancer_end.war /usr/local/apps/

echo -e  "\033[31mcp fight_cancer_end.war success\033[0m"


最后的路径是tomcat配置文件中设置的路径

wKioL1OCxYqSM9u0AAHNfieqCu0211.jpg

你可能感兴趣的:(打包,mvn)