I am writing a bash script to automate the build process. There are two major build blocks, one is an ant task and one is a plain old mvn clean install. I want
mvn clean install
Here is exactly what I do to get the result you want.