#!/bin/bash # Exit script on any errorset -e # Echo commands to the terminalset -x echo "Building the project and running tests..." # Clean the project, compile sources, run tests, and package the projectmvn clean install echo "Build and test processes are completed."
#!/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."