Building Kaa server from source code
Fetching source code
You can use any Git client to fetch Kaa source code from the repository.
To download Kaa repository, run the command below.
$ git clone https://github.com/kaaproject/kaa.git
To build Kaa node Debian/RPM packages, change the current directory after cloning.
And run the following command.
$ mvn -P compile-gwt,mongo-dao,mariadb-dao clean install verify
$ mvn -P compile-gwt,mongo-dao,mariadb-dao,build-rpm clean install verify
The Debian build will work correctly on both Linux and Windows operation systems, while the RPM build will only work on Linux with the RPM package manager installed.
mvn command, the build number and git commit variables are set to emulate Jenkins build variables that are substituted automatically on the build machine.
-DskipTests suffix to the
mvn command to skip execution of tests and speed up the build process.
Available Maven profiles
||As implied in the profile name, it will force to generate
||Compiles Cassandra log appender.|
||Forces Kaa to use Cassandra NoSQL storage. If none is set, MongoDB used by default.|
||Compiles endpoint C SDK and runs tests.|
||Compiles endpoint C++ SDK and runs tests.|
||Compiles endpoint Objective-C SDK and executes tests. Compiling only possible on OS X and CentOS operation systems.|
||Compiles Administration UI. Can be skipped during regular builds.|
||Forces Thrift compiler to generate code from Thrift files.|
||Compiles Couchbase log appender.|
||Forces Kaa to run integration tests.|
||Compiles Kafka log appender.|
||Forces Kaa to use Maven License plugin.|
||Forces Kaa to use MariaDB SQL storage. Enabled by default.|
||Forces Kaa to use MongoDB NoSQL storage. Enabled by default.|
||Compiles Oracle NoSQL log appender.|
||Forces Kaa to use PostgreSQL SQL storage. If none is set, MariaDB used by default.|
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.
You can use the following command to browse the Kaa node build artifacts in case of successful build.
$ ls server/node/target/kaa-node.deb
$ ls server/node/target/rpm/kaa-node/RPMS/noarch/kaa-node*.rpm
After you successfully built the Kaa server from sources, install a Kaa single node as described in Single node installation.