Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions build/make-distribution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ fi

export MAVEN_OPTS="${MAVEN_OPTS:--Xmx2g -XX:ReservedCodeCacheSize=1g}"

if [ ! "$(command -v "$MVN")" ] ; then
echo -e "Could not locate Maven command: '$MVN'."
exit -1;
# Validate Maven
if ! "$MVN" --version &>/dev/null; then
echo -e "Could not execute Maven command: '$MVN'."
echo " Use --mvn /path/to/mvn to specify an alternate Maven."
exit -1
fi

if [ $(command -v git) ]; then
Expand Down
Loading