#!/bin/sh if mvn -f pom.xml clean install > build-jar.log 2> build-jar.err.log; then echo "success" cp target/*.war /tmp else echo "failure" exit 1 fi