Skip to content

Commit b1e2e1e

Browse files
committed
removed skipUIbuild, declared frontend as separate maven module with pom packaging
1 parent 6471027 commit b1e2e1e

File tree

3 files changed

+66
-12
lines changed

3 files changed

+66
-12
lines changed

api/pom.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath>
1919
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
2020
<sonar.language>java</sonar.language>
21-
<skipUIBuild>true</skipUIBuild>
2221
</properties>
2322

2423
<dependencies>
@@ -405,7 +404,6 @@
405404
<artifactId>frontend-maven-plugin</artifactId>
406405
<version>${frontend-maven-plugin.version}</version>
407406
<configuration>
408-
<skip>${skipUIBuild}</skip>
409407
<workingDirectory>../frontend</workingDirectory>
410408
<environmentVariables>
411409
<VITE_TAG>${project.version}</VITE_TAG>
@@ -447,17 +445,8 @@
447445
</build>
448446

449447
<profiles>
450-
<profile>
451-
<id>local</id>
452-
<properties>
453-
<skipUIBuild>false</skipUIBuild>
454-
</properties>
455-
</profile>
456448
<profile>
457449
<id>prod</id>
458-
<properties>
459-
<skipUIBuild>false</skipUIBuild>
460-
</properties>
461450
<build>
462451
<plugins>
463452
<plugin>

frontend/pom.xml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>kafbat-ui</artifactId>
7+
<groupId>io.kafbat.ui</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<packaging>pom</packaging>
11+
<modelVersion>4.0.0</modelVersion>
12+
13+
<artifactId>frontend</artifactId>
14+
15+
<build>
16+
<plugins>
17+
<plugin>
18+
<groupId>com.github.eirslett</groupId>
19+
<artifactId>frontend-maven-plugin</artifactId>
20+
<version>${frontend-maven-plugin.version}</version>
21+
<configuration>
22+
<environmentVariables>
23+
<VITE_TAG>${project.version}</VITE_TAG>
24+
<VITE_COMMIT>${git.commit.id.abbrev}</VITE_COMMIT>
25+
</environmentVariables>
26+
</configuration>
27+
<executions>
28+
<execution>
29+
<id>install node and pnpm</id>
30+
<goals>
31+
<goal>install-node-and-pnpm</goal>
32+
</goals>
33+
<configuration>
34+
<nodeVersion>${node.version}</nodeVersion>
35+
<pnpmVersion>${pnpm.version}</pnpmVersion>
36+
</configuration>
37+
</execution>
38+
<execution>
39+
<id>pnpm install</id>
40+
<goals>
41+
<goal>pnpm</goal>
42+
</goals>
43+
<configuration>
44+
<arguments>install</arguments>
45+
</configuration>
46+
</execution>
47+
<execution>
48+
<id>pnpm build</id>
49+
<goals>
50+
<goal>pnpm</goal>
51+
</goals>
52+
<configuration>
53+
<arguments>build</arguments>
54+
</configuration>
55+
</execution>
56+
</executions>
57+
</plugin>
58+
</plugins>
59+
</build>
60+
61+
</project>

pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,16 +194,20 @@
194194
<activeByDefault>true</activeByDefault>
195195
</activation>
196196
<modules>
197+
<module>frontend</module>
197198
<module>api</module>
198199
<module>contract</module>
199200
<module>e2e-tests</module>
200201
<module>serde-api</module>
201202
</modules>
202203
</profile>
203204
<profile>
204-
<id>contract</id>
205+
<id>backend</id>
205206
<modules>
207+
<module>api</module>
206208
<module>contract</module>
209+
<module>e2e-tests</module>
210+
<module>serde-api</module>
207211
</modules>
208212
</profile>
209213
</profiles>

0 commit comments

Comments
 (0)