Merge pull request #1145 from metamx/remove-build-script

remove build.sh in favor of mvn package
This commit is contained in:
Fangjin Yang 2015-02-19 10:36:27 -08:00
commit 6d3200c67f
3 changed files with 14 additions and 28 deletions

View File

@ -1,17 +0,0 @@
#!/bin/bash -eu
BASE=$(cd $(dirname $0) && pwd)
VERSION=`cat pom.xml | grep '<version>' | head -1 | tail -1 | sed 's_.*<version>\([^<]*\)</version>.*_\1_'`
echo "Building Version [${VERSION}]"
mvn -U -B clean package
JARS=$(find "$BASE" -name "*-$VERSION-selfcontained.jar" | sed -e 's/^/ /')
cat <<EOF
The following self-contained jars (and more) have been built:
$JARS
EOF

View File

@ -1,23 +1,26 @@
--- ---
layout: doc_page layout: doc_page
--- ---
### Clone and Build from Source
The other way to setup Druid is from source via git. To do so, run these commands: ### Build from Source
The other way to setup Druid is from source via git.
Builing Druid requires the following:
- [JDK 7](http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html)
or [JDK 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
- [Maven version 3.x](http://maven.apache.org/download.cgi)
To do so, run these commands:
``` ```
git clone git@github.com:druid-io/druid.git git clone git@github.com:druid-io/druid.git
cd druid cd druid
./build.sh mvn clean package
``` ```
You should see a bunch of files: This will compile the project and create the Druid binary ditribution tar under
`services/target/druid-VERSION-bin.tar.gz`.
```
DruidCorporateCLA.pdf README common examples indexer pom.xml server
DruidIndividualCLA.pdf build.sh doc group_by.body install publications services
LICENSE client eclipse_formatting.xml index-common merger realtime
```
You can find the example executables in the examples/bin directory: You can find the example executables in the examples/bin directory:

View File

@ -20,7 +20,7 @@ git clone https://github.com/druid-io/druid.git druid
cd druid cd druid
git fetch --tags git fetch --tags
git checkout druid-0.7.0-rc3 git checkout druid-0.7.0-rc3
./build.sh mvn clean package
``` ```
### Downloading the DSK (Druid Standalone Kit) ### Downloading the DSK (Druid Standalone Kit)