-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
192 lines (178 loc) · 7 KB
/
Copy pathpom.xml
File metadata and controls
192 lines (178 loc) · 7 KB
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
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.yuier.yuni</groupId>
<artifactId>yuni3</artifactId>
<version>0.1.0</version>
<packaging>pom</packaging>
<name>yuni3</name>
<description>Yuni3 chat-bot app framework</description>
<url>https://github.com/liyuier/Yuni3</url>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/licenses/MIT</url>
</license>
</licenses>
<scm>
<connection>scm:git:git://github.com/liyuier/Yuni3.git</connection>
<developerConnection>scm:git:ssh://github.com:liyuier/Yuni3.git</developerConnection>
<url>https://github.com/liyuier/Yuni3</url>
</scm>
<developers>
<developer>
<name>Yuier</name>
<email>me@yuier.com</email>
<url>https://github.com/liyuier</url>
</developer>
</developers>
<!-- 子模块 -->
<modules>
<module>yuni-dependency</module>
<module>yuni-engine</module>
<module>yuni-adapter</module>
<module>yuni-webapi</module>
<module>yuni-event</module>
<module>yuni-plugin</module>
<module>yuni-permission</module>
<module>yuni-core</module>
<module>yuni-application</module>
<module>yuni-contact</module>
</modules>
<!-- 统一 Java 与 maven 属性 -->
<properties>
<java.version>21</java.version>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<maven.compiler.release>21</maven.compiler.release>
<maven.compiler.arg>--enable-preview</maven.compiler.arg>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
<spring-boot-maven-plugin.version>3.3.4</spring-boot-maven-plugin.version>
<maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
</properties>
<!-- 引入统一依赖管理 -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.yuier.yuni</groupId>
<artifactId>yuni-dependency</artifactId>
<version>0.1.0</version>
<type>pom</type> <!-- 依赖本身是个 pom -->
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<!-- 最终打包文件的名字 -->
<finalName>${project.artifactId}</finalName>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>--enable-preview</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<resources>
<resource>
<!-- 指定资源文件目录 -->
<directory>src/main/resources</directory>
<!-- 启用过滤,允许 Maven 替换 application.yml 等文件中的 ${project.version} 等占位符 -->
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<!-- 负责复制和过滤资源文件 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
</plugin>
<plugin>
<!-- SpringBoot 专用构建插件 -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot-maven-plugin.version}</version>
<configuration>
<excludes>
<exclude>
<!-- lombok 是编译期工具,打包时不需要 -->
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
<!-- 源码 jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals><goal>jar-no-fork</goal></goals>
</execution>
</executions>
</plugin>
<!-- Javadoc jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals><goal>jar</goal></goals>
</execution>
</executions>
<configuration>
<quiet>true</quiet>
<doclint>none</doclint>
</configuration>
</plugin>
<!-- GPG 签名(仅 deploy 时生效,本地 install 跳过) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals><goal>sign</goal></goals>
</execution>
</executions>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<!-- deploy -->
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.9.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<waitUntil>published</waitUntil>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<properties>
<gpg.skip>false</gpg.skip>
</properties>
</profile>
</profiles>
</project>