blob: e17bde759c2ddf42d792984ba6a021c2f6be8b46 [file] [log] [blame]
#!/bin/bash
BASEDIR=$(dirname "$0")
DISTRIBUTEDLOG_ROOT="${BASEDIR}/../.."
set -e
shopt -s dotglob
cd ${DISTRIBUTEDLOG_ROOT}
rm -rf distributedlog-service/lib
rm -rf dist/distributedlog-service*
mkdir -p dist/distributedlog-service/{conf,lib}
mvn clean install -pl distributedlog-service -am -DskipTests
cp -r distributedlog-service/conf/* dist/distributedlog-service/conf
cp -r distributedlog-service/lib/* dist/distributedlog-service/lib
cp distributedlog-service/target/distributedlog-service-*.jar dist/distributedlog-service
cd dist
zip -r distributedlog-service.zip distributedlog-service >/dev/null