#!/bin/bash -eu BASE=$(cd $(dirname $0) && pwd) VERSION=`cat pom.xml | grep '' | head -1 | tail -1 | sed 's_.*\([^<]*\).*_\1_'` echo "Building Version [${VERSION}]" mvn -U -B clean package JARS=$(find "$BASE" -name "*-$VERSION-selfcontained.jar" | sed -e 's/^/ /') cat <