#!/bin/bash # Exit script on any error set -e # Echo commands to the terminal set -x echo "Building the project and running tests..." # Clean the project, compile sources, run tests, and package the project mvn clean install echo "Build and test processes are completed."