-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
284 lines (281 loc) · 13.8 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>spring-boot-starter-parent</artifactId>
<groupId>org.springframework.boot</groupId>
<version>2.6.4</version>
</parent>
<groupId>org.demo</groupId>
<artifactId>rare-earth-track</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<modules>
<module>rare-earth-track-common</module>
<module>rare-earth-track-mgb</module>
<module>rare-earth-track-security</module>
<module>rare-earth-track-admin</module>
<module>rare-earth-track-portal</module>
<module>rare-earth-track-search</module>
</modules>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<hutool-all.version>5.8.3</hutool-all.version>
<docker.host>http://localhost:2375</docker.host>
<docker.maven.plugin.version>1.2.2</docker.maven.plugin.version>
<spring-boot-start-web.version>2.6.6</spring-boot-start-web.version>
<spring-data-commons.version>2.6.4</spring-data-commons.version>
<spring-boot-maven-plugin.version>2.6.4</spring-boot-maven-plugin.version>
<pagehelper-spring-boot-starter.version>1.4.2</pagehelper-spring-boot-starter.version>
<rare-earth-track-common.version>1.0-SNAPSHOT</rare-earth-track-common.version>
<rare-earth-track-portal.version>1.0-SNAPSHOT</rare-earth-track-portal.version>
<rare-earth-track-security.version>1.0-SNAPSHOT</rare-earth-track-security.version>
<rare-earth-track-admin.version>1.0-SNAPSHOT</rare-earth-track-admin.version>
<rare-earth-track-mgb.version>1.0-SNAPSHOT</rare-earth-track-mgb.version>
<mybatis-spring-boot-starter.version>2.2.2</mybatis-spring-boot-starter.version>
<aspectjweaver.version>1.9.9</aspectjweaver.version>
<springdoc-openapi-webmvc-core.version>1.6.9</springdoc-openapi-webmvc-core.version>
<springdoc-openapi-javadoc.version>1.6.9</springdoc-openapi-javadoc.version>
<springdoc-openapi-ui.version>1.6.9</springdoc-openapi-ui.version>
<jwtt.version>0.9.0</jwtt.version>
<hhutool-all.version>5.7.15</hhutool-all.version>
<jackson-datatype-jsr310.version>2.13.2</jackson-datatype-jsr310.version>
<protobuf-java.version>3.17.0</protobuf-java.version>
<org.eclipse.paho.client.mqttv3.version>1.2.1</org.eclipse.paho.client.mqttv3.version>
<bcprov-jdk15.version>140</bcprov-jdk15.version>
<fastjson.version>1.2.83</fastjson.version>
<commons-httpclient.versoin>3.1</commons-httpclient.versoin>
<json-lib.version>2.2.3</json-lib.version>
<mybatis-spring-boot-starter.version>2.2.2</mybatis-spring-boot-starter.version>
<mybatis-plus-core.version>3.5.1</mybatis-plus-core.version>
<okhttp.version>3.14.0</okhttp.version>
<jasypt-spring-boot-starter.version>2.1.0</jasypt-spring-boot-starter.version>
<aspectjweaver.version>1.9.9</aspectjweaver.version>
<mail.version>1.4.7</mail.version>
<mybatis-generator-core.version>1.4.1</mybatis-generator-core.version>
<mybatis-plus-boot-starter.version>3.5.1</mybatis-plus-boot-starter.version>
</properties>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>${hutool-all.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis-plus-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>${springdoc-openapi-ui.version}</version>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-javadoc</artifactId>
<version>${springdoc-openapi-javadoc.version}</version>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-webmvc-core</artifactId>
<version>${springdoc-openapi-webmvc-core.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectjweaver.version}</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobuf-java.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
<version>${org.eclipse.paho.client.mqttv3.version}</version>
</dependency>
<dependency>
<groupId>bouncycastle</groupId>
<artifactId>bcprov-jdk15</artifactId>
<version>${bcprov-jdk15.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>${commons-httpclient.versoin}</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<classifier>jdk15</classifier>
<version>${json-lib.version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>${okhttp.version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-core</artifactId>
<version>${mybatis-plus-core.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>${jackson-datatype-jsr310.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>${mybatis-generator-core.version}</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>${jwtt.version}</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>${mail.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring-boot-start-web.version}</version>
</dependency>
<!-- 配置文件项加密 -->
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
<version>${jasypt-spring-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>${pagehelper-spring-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
<version>${spring-data-commons.version}</version>
</dependency>
<dependency>
<groupId>org.demo</groupId>
<artifactId>rare-earth-track-common</artifactId>
<version>${rare-earth-track-common.version}</version>
</dependency>
<dependency>
<groupId>org.demo</groupId>
<artifactId>rare-earth-track-mgb</artifactId>
<version>${rare-earth-track-mgb.version}</version>
</dependency>
<dependency>
<groupId>org.demo</groupId>
<artifactId>rare-earth-track-security</artifactId>
<version>${rare-earth-track-security.version}</version>
</dependency>
<dependency>
<groupId>org.demo</groupId>
<artifactId>rare-earth-track-admin</artifactId>
<version>${rare-earth-track-admin.version}</version>
</dependency>
<dependency>
<groupId>org.demo</groupId>
<artifactId>rare-earth-track-portal</artifactId>
<version>${rare-earth-track-portal.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!-- common也是SpringBoot工程,SpringBoot工程打包编译时,会生成两种jar包,
一种是普通的jar,另一种是可执行jar。默认情况下,这两种jar的名称相同,在
不做配置的情况下,普通的jar先生成,可执行jar后生成,造成可执行jar会覆盖
普通的jar。而projectA工程无法依赖common工程的可执行jar,所以编译失败:
程序包xxx不存在。-->
<configuration>
<classifier>exec</classifier>
</configuration>
<version>${spring-boot-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.40.1</version>
<configuration>
<images>
<image>
<name>hhoao/${project.artifactId}:${project.version}</name>
<build>
<dockerFile>${project.basedir}/Dockerfile</dockerFile>
</build>
</image>
</images>
</configuration>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker.maven.plugin.version}</version>
<configuration>
<imageName>hhoao/${project.artifactId}:${project.version}</imageName>
<dockerHost>${docker.host}</dockerHost>
<baseImage>openjdk:17</baseImage>
<entryPoint>["java", "-jar",
"-Dspring.profiles.active=prod","/${project.build.finalName}-exec.jar"]
</entryPoint>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}-exec.jar</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>