diff --git a/build.sh b/build.sh index c27ee0b3d78..a95dafd23d0 100755 --- a/build.sh +++ b/build.sh @@ -1,27 +1,17 @@ -#!/bin/bash -e +#!/bin/bash -eu -PROJECT=druid +BASE=$(cd $(dirname $0) && pwd) -DIST_DIR=dist/tar +VERSION=`cat pom.xml | grep '' | head -1 | tail -1 | sed 's_.*\([^<]*\).*_\1_'` -SCRIPT_DIR=`dirname $0` -pushd $SCRIPT_DIR -SCRIPT_DIR=`pwd` -popd +echo "Building Version [${VERSION}]" -VERSION=`cat pom.xml | grep version | head -4 | tail -1 | sed 's_.*\([^<]*\).*_\1_'` +mvn -U -B clean package -echo Using Version[${VERSION}] +JARS=$(find "$BASE" -name "*-$VERSION-selfcontained.jar" | sed -e 's/^/ /') -mvn clean -mvn package +cat <