From a665fb4d83041857995a5b47eb307c70a3ae289b Mon Sep 17 00:00:00 2001 From: MichaelGonzalezMurillo <110129349+MichaelGonzalezMurillo@users.noreply.github.com> Date: Wed, 17 Aug 2022 09:17:37 -0600 Subject: [PATCH] Add an ability to build api without frontend based on a property (#2424) --- documentation/project/contributing/building.md | 7 +++++++ kafka-ui-api/pom.xml | 1 + 2 files changed, 8 insertions(+) diff --git a/documentation/project/contributing/building.md b/documentation/project/contributing/building.md index 21562426e5..7b530829b9 100644 --- a/documentation/project/contributing/building.md +++ b/documentation/project/contributing/building.md @@ -19,6 +19,13 @@ docker-compose -f ./documentation/compose/kafka-clusters-only.yaml up -d Then, start the app. +### Building only the API + +To build only the kafka-ui-api you can use this command: +```sh +./mvnw -f kafka-ui-api/pom.xml clean install -Pprod -DskipUIBuild=true +``` + ## Where to go next In the next section, you'll [learn how to run the application](running.md). \ No newline at end of file diff --git a/kafka-ui-api/pom.xml b/kafka-ui-api/pom.xml index 53eb24731d..5c00dc0f6d 100644 --- a/kafka-ui-api/pom.xml +++ b/kafka-ui-api/pom.xml @@ -404,6 +404,7 @@ frontend-maven-plugin ${frontend-maven-plugin.version} + ${skipUIBuild} ../kafka-ui-react-app ${project.version}