-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
359 lines (346 loc) · 16.6 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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
<?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>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.12</version>
</parent>
<groupId>space.x9x.radp</groupId>
<artifactId>radp</artifactId>
<version>0.11-SNAPSHOT</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>Rapid Application Development Platform</description>
<url>https://github.com/xooooooooox/radp</url>
<modules>
<module>radp-agents</module>
<module>radp-components</module>
<module>radp-plugins</module>
<module>radp-tests</module>
<module>radp-archetypes</module>
</modules>
<properties>
<!-- project info -->
<scm.git.web_url>https://github.com/xooooooooox/radp.git</scm.git.web_url>
<scm.git.url>[email protected]:xooooooooox/radp.git</scm.git.url>
<scm.issue.url>https://github.com/xooooooooox/radp/issues</scm.issue.url>
<developer.id>x9x</developer.id>
<developer.name>xooooooooox</developer.name>
<developer.email>[email protected]</developer.email>
<!-- build -->
<java.version>8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<flattened.filename>.flatten-pom-xml</flattened.filename>
<javadoc.encoding>${project.build.sourceEncoding}</javadoc.encoding>
<central.server.id>central-portal</central.server.id>
<user.gpg.keyname />
<user.minio.alias />
<user.minio.bucket.path />
<user.docker.build.registry />
<user.docker.build.base_image />
<user.jasypt.encryptor.password />
<!-- plugin version -->
<maven-deploy-plugin.version>3.0.0</maven-deploy-plugin.version>
<flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version>
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
<versions-maven-plugin.version>2.14.2</versions-maven-plugin.version>
<maven-wrapper-plugin.version>3.2.0</maven-wrapper-plugin.version>
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
<maven-checksum-plugin.version>1.10</maven-checksum-plugin.version>
<maven-release-plugin.version>3.0.1</maven-release-plugin.version>
<central-publishing-maven-plugin.version>0.6.0</central-publishing-maven-plugin.version>
</properties>
<developers>
<developer>
<id>${developer.id}</id>
<name>${developer.name}</name>
<email>${developer.email}</email>
<roles>
<role>Architect</role>
<role>Developer</role>
</roles>
</developer>
</developers>
<scm>
<url>${scm.git.web_url}</url>
<connection>scm:git:${scm.git.url}</connection>
<developerConnection>scm:git:${scm.git.url}</developerConnection>
<tag>HEAD</tag>
</scm>
<issueManagement>
<system>GitHub</system>
<url>${scm.issue.url}</url>
</issueManagement>
<licenses>
<license>
<name>GNU General Public License, Version 3</name>
<url>https://www.gnu.org/licenses/gpl-3.0-standalone.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- 如果没有 Git 目录,不会导致构建失败 -->
<failOnNoGitDirectory>false</failOnNoGitDirectory>
<!-- 如果无法提取仓库信息,不会导致构建失败 -->
<failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo>
<!-- 生成 git.properties 文件 -->
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<!-- 仅包含指定的属性 -->
<includeOnlyProperties>
<includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.id.describe$</includeOnlyProperty>
<includeOnlyProperty>^git.branch$</includeOnlyProperty>
<includeOnlyProperty>^git.remote.origin.url$</includeOnlyProperty>
</includeOnlyProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<source>${java.version}</source>
<encoding>${project.build.sourceEncoding}</encoding>
<charset>${javadoc.encoding}</charset>
<docencoding>${javadoc.encoding}</docencoding>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<failOnError>false</failOnError>
</configuration>
</execution>
<!-- 聚合多模块项目的 java doc -->
<execution>
<id>aggregate</id>
<goals>
<goal>aggregate</goal>
</goals>
<configuration>
<!-- Specific configuration for the aggregate report -->
<reportOutputDirectory>${project.build.directory}</reportOutputDirectory>
<destDir>javadoc</destDir>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<!-- 启用 pinentry-mode loopback 模式需要满足以下条件 -->
<!-- 1. 确保 gpg version 2.1+ -->
<!-- 2. 确保 ~/.gnupg/gpg.conf 启用 allow-loopback-pinentry -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
<useAgent>true</useAgent>
<keyname>${user.gpg.keyname}</keyname>
<passphraseServerId>${user.gpg.keyname}</passphraseServerId>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.nicoulaj.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
<version>${maven-checksum-plugin.version}</version>
<executions>
<execution>
<id>create-checksums</id>
<goals>
<goal>artifacts</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
<autoVersionSubmodules>true</autoVersionSubmodules>
<!-- scmCommentPrefix: default is [maven-release-plugin] -->
<!-- scmReleaseCommitComment: default is @{prefix} prepare release @{releaseLabel} -->
<!-- scmDevelopmentCommitComment: default is @{prefix} prepare for next development iteration -->
<!-- 如果为true, 那么 performRelease 将会为 true -->
<!-- 利用这个特性,可以将这个 performRelease 绑定到通过属性激活的 profile, 以补充 arguments 的不足 -->
<useReleaseProfile>false</useReleaseProfile>
<!-- 指定 release:perform 执行时传递的 maven config, 比如指定 -Pxx,yy -->
<arguments>${devops.release.arguments}</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-wrapper-plugin</artifactId>
<version>${maven-wrapper-plugin.version}</version>
<configuration>
<mavenVersion>3.9.9</mavenVersion>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<configuration>
<generateBackupPoms>false</generateBackupPoms>
</configuration>
</plugin>
<!-- 解决多模块 revision 版本替换问题 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenedPomFilename>${flattened.filename}</flattenedPomFilename>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions>
<!-- enable flattening -->
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>coding</id>
<properties>
<!-- archetype -->
<user.gpg.keyname>${setting.gpg.keyname}</user.gpg.keyname>
<user.minio.alias>${setting.minio.alias}</user.minio.alias>
<user.minio.bucket.path>${setting.minio.bucket.path}</user.minio.bucket.path>
<!-- docker -->
<user.docker.build.registry>${setting.docker.build.registry}</user.docker.build.registry>
<user.docker.build.base_image>${setting.docker.build.base_image}
</user.docker.build.base_image>
<!-- jasypt -->
<user.jasypt.encryptor.password>${setting.jasypt.encryptor.password}</user.jasypt.encryptor.password>
</properties>
</profile>
<!-- 发布到中央仓库 -->
<!-- https://central.sonatype.com/ -->
<!-- 该插件的存在无需指定 distributionManagement -->
<profile>
<id>publish-central</id>
<properties>
<auto.release.enabled>true</auto.release.enabled>
<devops.release.arguments>-Pcoding,publish-central -DskipTests</devops.release.arguments>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${central-publishing-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>${central.server.id}</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- 为了加快构建速度 -->
<!-- 对于 source jar, javadoc, asc, md5 这些构件信息 -->
<!-- 只针对涉及发布到远程仓库时, 才激活, 比如 profile publish-* 激活时将自动激活 -->
<id>auto-release</id>
<activation>
<property>
<name>auto.release.enabled</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<!-- 一定要先签名,再生成校验文件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>
<plugin>
<groupId>net.nicoulaj.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>