This page covers how to build Fluss from sources.
In order to build Fluss you need to get the source code by cloning the git repository.
In addition, you need Maven 3.8.6 and a JDK (Java Development Kit). Fluss requires Java 11 to build.
To clone from git, enter:
git clone git@github.com:apache/fluss.git
If you want to build a specific release or release candidate, have a look at the existing tags using
git tag -n
and checkout the corresponding branch using
git checkout <tag>
The simplest way of building Fluss is by running:
mvn clean install -DskipTests
This instructs Maven (mvn) to first remove all existing builds (clean) and then create a new Fluss binary (install).
:::tip Using the included Maven Wrapper by replacing mvn with ./mvnw ensures that the correct Maven version is used. :::
To speed up the build you can:
-DskipTestsmvn package -T 1C will attempt to build 1 module for each CPU core in parallel.The build script will be:
mvn clean install -DskipTests -T 1C
NOTE:
${project}/build-target in project.fluss-xxx-bin.tgz, the file is in directory ${project}/fluss-dist/target.