|
@@ -75,29 +75,6 @@
|
|
|
</configOptions>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
- <execution>
|
|
|
- <id>generate-frontend-api</id>
|
|
|
- <goals>
|
|
|
- <goal>generate</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <inputSpec>${project.basedir}/src/main/resources/swagger/kafka-ui-api.yaml
|
|
|
- </inputSpec>
|
|
|
- <output>${project.build.directory}/generated-sources/frontend/</output>
|
|
|
- <generatorName>typescript-fetch</generatorName>
|
|
|
- <configOptions>
|
|
|
- <modelPackage>com.provectus.kafka.ui.model</modelPackage>
|
|
|
- <apiPackage>com.provectus.kafka.ui.api</apiPackage>
|
|
|
- <apiPackage>com.provectus.kafka.ui.invoker</apiPackage>
|
|
|
- <sourceFolder>kafka-ui-contract</sourceFolder>
|
|
|
- <typescriptThreePlus>true</typescriptThreePlus>
|
|
|
- <supportsES6>true</supportsES6>
|
|
|
- <nullSafeAdditionalProps>true</nullSafeAdditionalProps>
|
|
|
- <withInterfaces>true</withInterfaces>
|
|
|
- <enumPropertyNaming>UPPERCASE</enumPropertyNaming>
|
|
|
- </configOptions>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
<execution>
|
|
|
<id>generate-connect-client</id>
|
|
|
<goals>
|
|
@@ -126,6 +103,46 @@
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.github.eirslett</groupId>
|
|
|
+ <artifactId>frontend-maven-plugin</artifactId>
|
|
|
+ <version>${frontend-maven-plugin.version}</version>
|
|
|
+ <configuration>
|
|
|
+ <workingDirectory>../kafka-ui-react-app</workingDirectory>
|
|
|
+ <environmentVariables>
|
|
|
+ <REACT_APP_TAG>v${project.version}</REACT_APP_TAG>
|
|
|
+ </environmentVariables>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>install node and npm</id>
|
|
|
+ <goals>
|
|
|
+ <goal>install-node-and-npm</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <nodeVersion>${node.version}</nodeVersion>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <id>npm install</id>
|
|
|
+ <goals>
|
|
|
+ <goal>npm</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <arguments>install</arguments>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <id>npm run gen:sources</id>
|
|
|
+ <goals>
|
|
|
+ <goal>npm</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <arguments>run gen:sources</arguments>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-clean-plugin</artifactId>
|