Merge pull request #900 from metamx/build-fixes

Build fixes
This commit is contained in:
Fangjin Yang 2014-11-24 12:24:12 -07:00
commit 8c5b6e6ef8
2 changed files with 22 additions and 25 deletions

View File

@ -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 '<version>' | head -1 | tail -1 | sed 's_.*<version>\([^<]*\)</version>.*_\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_.*<version>\([^<]*\)</version>.*_\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 <<EOF
if [ $? -ne "0" ]; then
echo "mvn package failed"
exit 2;
fi
echo " "
echo " The following self-contained jars (and more) have been built:"
echo " "
find . -name '*-selfcontained.jar'
The following self-contained jars (and more) have been built:
$JARS
EOF

View File

@ -32,9 +32,17 @@
</parent>
<dependencies>
<!-- include druid-common to prevent older versions of dependencies
from being pulled in by airline and dependencies of druid-server -->
<dependency>
<groupId>io.airlift</groupId>
<artifactId>airline</artifactId>
<groupId>io.druid</groupId>
<artifactId>druid-common</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>io.druid</groupId>
<artifactId>druid-server</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>io.druid</groupId>
@ -47,9 +55,8 @@
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>io.druid</groupId>
<artifactId>druid-server</artifactId>
<version>${project.parent.version}</version>
<groupId>io.airlift</groupId>
<artifactId>airline</artifactId>
</dependency>
</dependencies>