You can build Apache Druid (incubating) directly from source. Please note that these instructions are for building the latest stable version of Druid. For building the latest code in master, follow the instructions here.
git clone git@github.com:apache/incubator-druid.git cd druid
The basic command to build Druid from source is:
mvn clean install
This will run static analysis, unit tests, compile classes, and package the projects into JARs. It will not generate the source or binary distribution tarball.
In addition to the basic stages, you may also want to add the following profiles and properties:
distribution/target/apache-druid-x.x.x-bin.tar.gz
distribution/target/apache-druid-x.x.x-src.tar.gz
Putting these together, if you wish to build the source and binary distributions with signatures and checksums, audit licenses, and skip the unit tests, you would run:
mvn clean install -Papache-release,dist,rat -DskipTests