2012-10-24 03:39:51 -04:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
PROJECT=druid
|
|
|
|
|
|
|
|
DIST_DIR=dist/tar
|
|
|
|
|
|
|
|
SCRIPT_DIR=`dirname $0`
|
|
|
|
pushd $SCRIPT_DIR
|
|
|
|
SCRIPT_DIR=`pwd`
|
|
|
|
popd
|
|
|
|
|
2012-10-24 17:34:24 -04:00
|
|
|
VERSION=`cat pom.xml | grep version | head -4 | tail -1 | sed 's_.*<version>\([^<]*\)</version>.*_\1_'`
|
2012-10-24 03:39:51 -04:00
|
|
|
|
2012-10-24 17:34:24 -04:00
|
|
|
echo Using Version[${VERSION}]
|
2012-10-24 03:39:51 -04:00
|
|
|
|
|
|
|
mvn clean
|
|
|
|
mvn package
|
|
|
|
|
|
|
|
if [ $? -ne "0" ]; then
|
|
|
|
echo "mvn package failed"
|
|
|
|
exit 2;
|
|
|
|
fi
|
|
|
|
|
2012-10-24 17:34:24 -04:00
|
|
|
echo " "
|
|
|
|
echo " The following self-contained jars (and more) have been built:"
|
|
|
|
echo " "
|
|
|
|
find . -name '*-selfcontained.jar'
|
|
|
|
echo " "
|
|
|
|
echo "For examples, see: "
|
|
|
|
echo " "
|
|
|
|
ls -1 examples/*/*sh
|
|
|
|
echo " "
|
2014-03-06 15:53:05 -05:00
|
|
|
echo "See also http://druid.io/docs/0.6.63"
|