#!/bin/bash source /etc/profile cd /app/trunk mvn clean package if [ $? != 0 ];then mvn clean package fi echo ">>>build src success..."