|Table of Contents|
This page describes how to build the Kaa server from the source code available on GitHub.
Before building the Kaa server from source, ensure that Oracle JDK 8 and Apache Maven are installed on your machine.
It is allowed to use any Git client to fetch the Kaa source code from the repository.
Set up your Git configuration (at least the username and email) and download Download Kaa repository as follows:
$ git clone https://github.com/kaaproject/kaa.git
To build Kaa node Debian/RPM packages, execute the following command.
The Debian build will work correctly on both Linux and Windows operation systems, while the RPM build will work only on Linux operated machines with the RPM tool installed.
For the mvn command, the build number and git commit variables are set to emulate Jenkins build variables that are substituted automatically on the build machine.
Please add "-DskipTests" suffix to the mvn command in order to skip execution of tests and speed up build process.
|As implied in the profile name, it will force to generate .rpm packages. This is useful if you are going to install Kaa on .rpm based Linux distribution (Red Hat Linux, Oracle Linux, etc.)|
|Forces Kaa to use Cassandra NoSQL storage. If none is set MongoDB used by default.|
|Forces Kaa to use MongoDB NoSQL storage. Enabled by default.|
|Forces Kaa to use PostgreSQL SQL storage. If none is set MariaDB used by default.|
|Forces Kaa to use MariaDB SQL storage. Enabled by default.|
|Compiles administration user interface. Can be skipped during regular builds.|
|Compiles C endpoint SDK and executes tests.|
Compiles C++ endpoint SDK and executes tests.
Compiles Objective-C endpoint SDK and executes tests. Compiling only possible on OS X and CentOS operation systems.
|Forces Thrift compiler to generate code from thrift files.|
|Compiles Cassandra log appender.|
|Compiles CDAP log appender.|
|Compiles Couchbase log appender.|
|Compiles Kafka log appender.|
|Compiles Oracle NoSQL log appender.|
|Forces Kaa to execute integration tests.|
|Forces Kaa to use Maven License plugin.|
compile-client-* profiles are optional. All endpoint SDKs will be available in Kaa node by default. This profiles are used only for verification of endpoint SDK build during development.
The following command can be used to browse the Kaa node build artifacts in case of successful build.
Follow the official installation guide.