瀏覽代碼

Add an ability to build api without frontend based on a property (#2424)

MichaelGonzalezMurillo 2 年之前
父節點
當前提交
a665fb4d83
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 7 0
      documentation/project/contributing/building.md
  2. 1 0
      kafka-ui-api/pom.xml

+ 7 - 0
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).

+ 1 - 0
kafka-ui-api/pom.xml

@@ -404,6 +404,7 @@
                         <artifactId>frontend-maven-plugin</artifactId>
                         <version>${frontend-maven-plugin.version}</version>
                         <configuration>
+                            <skip>${skipUIBuild}</skip>
                             <workingDirectory>../kafka-ui-react-app</workingDirectory>
                             <environmentVariables>
                                 <VITE_TAG>${project.version}</VITE_TAG>