Skip to content

Commit 54e6f10

Browse files
committed
Managed to made it compile into a single, standalone, file
To make it compile, use the command `mvwn clean package spring-boot:repackage -Dmaven.test.skip -f pom.xml`, output is in application/target/ directory. References: - https://stackoverflow.com/a/34682937/8767538 - https://stackoverflow.com/a/56535517/8767538 - https://www.baeldung.com/spring-boot-multiple-modules - https://spring.io/guides/gs/multi-module
1 parent 01561e8 commit 54e6f10

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

jooq-common/pom.xml

+19
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@
2121

2222
<!-- Module-specific dependencies -->
2323
<dependencies>
24+
<!--dependency>
25+
<groupId>org.springframework.boot</groupId>
26+
<artifactId>spring-boot</artifactId>
27+
<version>${spring.boot.version}</version>
28+
</dependency>
29+
<dependency>
30+
<groupId>org.springframework.boot</groupId>
31+
<artifactId>spring-boot-starter-test</artifactId>
32+
<version>${spring.boot.version}</version>
33+
<scope>test</scope>
34+
</dependency-->
2435
<dependency>
2536
<groupId>org.jooq</groupId>
2637
<artifactId>jooq</artifactId>
@@ -34,6 +45,14 @@
3445
</dependencies>
3546
<build>
3647
<plugins>
48+
<plugin>
49+
<groupId>org.springframework.boot</groupId>
50+
<artifactId>spring-boot-maven-plugin</artifactId>
51+
<version>${spring.boot.version}</version>
52+
<configuration>
53+
<skip>true</skip>
54+
</configuration>
55+
</plugin>
3756
<plugin>
3857
<groupId>org.jooq</groupId>
3958
<artifactId>jooq-codegen-maven</artifactId>

pom.xml

+23
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<version>0.0.1-SNAPSHOT</version>
99
<description>Furizon&apos;s backend project</description>
1010
<packaging>pom</packaging> <!-- Specifies that it's a parent POM -->
11+
1112
<url/>
1213
<licenses>
1314
<license/>
@@ -67,7 +68,29 @@
6768
</dependency>
6869
</dependencies>
6970
<build>
71+
<pluginManagement>
72+
<plugins>
73+
<plugin>
74+
<groupId>org.springframework.boot</groupId>
75+
<artifactId>spring-boot-maven-plugin</artifactId>
76+
<version>${spring.boot.version}</version>
77+
</plugin>
78+
</plugins>
79+
</pluginManagement>
7080
<plugins>
81+
<plugin>
82+
<artifactId>maven-assembly-plugin</artifactId>
83+
<configuration>
84+
<archive>
85+
<manifest>
86+
<mainClass>net.furizon.backend.BackendApplication</mainClass>
87+
</manifest>
88+
</archive>
89+
<descriptorRefs>
90+
<descriptorRef>jar-with-dependencies</descriptorRef>
91+
</descriptorRefs>
92+
</configuration>
93+
</plugin>
7194
<plugin>
7295
<groupId>org.apache.maven.plugins</groupId>
7396
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)