-
Install J2SE 11 SDK (or later)
-
Make sure that your JAVA_HOME environment variable is set to the newly installed JDK location, and that your PATH includes
%JAVA_HOME%\bin(windows) or$JAVA_HOME$/bin(unix). -
Install Maven 3.8.0 (or later), which can be downloaded from http://maven.apache.org/download.html. Make sure that your PATH includes the
$MVN_HOME/bindirectory.
-
Change to the top level directory of Apache Karaf source distribution.
-
Run
$> mvn clean installThis will compile Apache Karaf and run all of the tests in the Apache Karaf source distribution. Alternatively, you can run:
$> mvn clean install -DskipTestsThis will compile Apache Karaf without running the tests and takes less time to build.
-
The distributions will be available under
assemblies/apache-karaf/targetandassemblies/apache-karaf-minimal/targetdirectories.