CATALINA_HOME=/opt/servers/tomcat/apache-tomcat-7.0.67
#CATALINA_HOME=/home/montieln/Desktop/tmp/wars 
SEVICIOS_WAR=rest-services

mvn clean install -Dmaven.test.skip=true -P production
echo "cp ${SEVICIOS_WAR}/target/*.war ${CATALINA_HOME}/webapps/"
cp ${SEVICIOS_WAR}/target/*.war ${CATALINA_HOME}/webapps/
#cp ${SEVICIOS_WAR}/target/*.war ${CATALINA_HOME}

#Si se quiere instalar se requiere hacer lo siguiente
#mvn  -P production -Dmaven.test.skip=true tomcat7:redeploy
#mvn  -P production -Dmaven.test.skip=true tomcat7:deploy
#mvn  -P production -Dmaven.test.skip=true tomcat7:undeploy
