Przeglądaj źródła

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

MichaelGonzalezMurillo 2 lat temu
rodzic
commit
a665fb4d83

+ 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>