-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpom.xml
168 lines (147 loc) · 5.65 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
<?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>
<packaging>jar</packaging>
<parent>
<groupId>cc.uncarbon.framework</groupId>
<artifactId>helio-starters</artifactId>
<version>2.3.1</version>
</parent>
<artifactId>helio-boot</artifactId>
<description>Helio 单模块版单体脚手架</description>
<!-- 制品版本号,建议每次打包发布时都调整以作区分 -->
<version>2.3.1</version>
<properties>
<!-- 如果实际开发使用的是JDK 21,则下面改成'21' -->
<java.version>17</java.version>
<!-- 这里管理全局第三方依赖版本,避免冲突 -->
<!-- 文件上传 -->
<x-file-storage.version>2.2.1</x-file-storage.version>
<minio.version>8.5.8</minio.version>
</properties>
<dependencies>
<!-- 脚手架 starters -->
<dependency>
<groupId>cc.uncarbon.framework</groupId>
<artifactId>helio-core</artifactId>
</dependency>
<dependency>
<groupId>cc.uncarbon.framework</groupId>
<artifactId>helio-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>cc.uncarbon.framework</groupId>
<artifactId>helio-starter-crud</artifactId>
</dependency>
<dependency>
<groupId>cc.uncarbon.framework</groupId>
<artifactId>helio-starter-knife4j</artifactId>
<exclusions>
<exclusion>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-micro-spring-boot-starter</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>cc.uncarbon.framework</groupId>
<artifactId>helio-starter-redis</artifactId>
</dependency>
<dependency>
<groupId>cc.uncarbon.framework</groupId>
<artifactId>helio-starter-satoken</artifactId>
</dependency>
<dependency>
<groupId>cc.uncarbon.framework</groupId>
<artifactId>helio-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>cc.uncarbon.framework</groupId>
<artifactId>helio-starter-web</artifactId>
</dependency>
<!-- 这里写其他第三方依赖 -->
<!-- 对象存储工具类 https://gitee.com/dromara/x-file-storage -->
<dependency>
<groupId>org.dromara.x-file-storage</groupId>
<artifactId>x-file-storage-spring</artifactId>
<version>${x-file-storage.version}</version>
<exclusions>
<!-- hutool版本冲突,用 helio-core 的版本 -->
<exclusion>
<groupId>cn.hutool</groupId>
<artifactId>hutool-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- MinIO 依赖包 -->
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>${minio.version}</version>
</dependency>
</dependencies>
<build>
<!-- 支持 mybatis XML 放置在 java 包下 -->
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<!-- Spring Boot 打包插件 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 编译时,跳过单元测试 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<!-- 编译时,不执行 mvn deploy -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<!-- 编译时,不生成 javadoc.jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<!-- 编译时,不生成 sources.jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<configuration>
<skipSource>true</skipSource>
</configuration>
</plugin>
</plugins>
</build>
</project>