Build Wanaku Barn from source
Overview
This page shows how to build the Barn components from source: the Wanaku CLI, the Barn backend, the Wanaku Operator, and the Admin UI plugins.
Prerequisites
- Java 21 or later
- Apache Maven 3.x is required to build and package the project.
- For (experimental) native CLI builds, please follow the Quarkus instructions on how to set up your environment.
Building the Project
To build all the Barn components, run:
shell
mvn verifyThis command will compile, test, and verify the project.
To package it into a distributable format (i.e.: tarballs), run:
shell
mvn -Pdist clean packageBuilding with Native CLI Support
To build the project with native CLI support, run:
shell
mvn -Pnative clean packageNative build tips
The project comes with rudimentary automation for native builds for development purposes. For instance, you can install the CLI into your $HOME/bin/ directory by running:
shell
eval $(make prepare)
make cli-native
make installSee PATH Configuration if $HOME/bin is not on your default PATH.
Building with the containers
shell
mvn -Pdist -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true clean package