Maven command check

This commit is contained in:
Brandon Rozek 2023-03-29 21:47:43 -04:00
parent 8790ccde66
commit 0e3de64cdd
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480

View file

@ -13,6 +13,11 @@ if [ "$#" -ne 1 ]; then
show_usage show_usage
fi fi
if ! command -v mvn &> /dev/null; then
echo "Maven (mvn) is not found in the path"
exit 1
fi
mvn -q exec:java -Dexec.mainClass="com.naveensundarg.planner.utils.Runner" -Dexec.args="$1" mvn -q exec:java -Dexec.mainClass="com.naveensundarg.planner.utils.Runner" -Dexec.args="$1"