app
潘志宝
2024-08-19 2563526c3fda3ae9b45aad02ed10427508a29af3
提交 | 用户 | 时间
e7c126 1 <?xml version="1.0" encoding="UTF-8"?>
H 2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5     <parent>
6         <groupId>com.iailab</groupId>
7         <artifactId>iailab-framework</artifactId>
8         <version>${revision}</version>
9     </parent>
10     <modelVersion>4.0.0</modelVersion>
11     <artifactId>iailab-common-web</artifactId>
12     <packaging>jar</packaging>
13
14     <name>${project.artifactId}</name>
15     <description>Web 框架,全局异常、API 日志、脱敏、错误码等</description>
4d4165 16     <url>http://172.16.8.100:8888/summary/iailab-plat.git</url>
e7c126 17
H 18     <dependencies>
19         <dependency>
20             <groupId>com.iailab</groupId>
21             <artifactId>iailab-common</artifactId>
22         </dependency>
23
24         <!-- Spring Boot 配置所需依赖 -->
25         <dependency>
26             <groupId>org.springframework.boot</groupId>
27             <artifactId>spring-boot-configuration-processor</artifactId>
28             <optional>true</optional>
29         </dependency>
30
31         <!-- Web 相关 -->
32         <dependency>
33             <groupId>org.springframework.boot</groupId>
34             <artifactId>spring-boot-starter-web</artifactId>
35         </dependency>
36
37         <dependency>
38             <groupId>org.springframework.boot</groupId>
39             <artifactId>spring-boot-starter-validation</artifactId>
40         </dependency>
41
42         <dependency>
43             <groupId>org.springframework.security</groupId>
44             <artifactId>spring-security-core</artifactId>
45 <!--            <scope>provided</scope> &lt;!&ndash; 设置为 provided,主要是 GlobalExceptionHandler 使用 &ndash;&gt;-->
46         </dependency>
47
48         <dependency>
49             <groupId>com.github.xiaoymin</groupId> <!-- 接口文档 -->
50             <artifactId>knife4j-openapi3-spring-boot-starter</artifactId>
51         </dependency>
52         <dependency>
53             <groupId>org.springdoc</groupId>  <!-- 接口文档 -->
54             <artifactId>springdoc-openapi-ui</artifactId>
55         </dependency>
56
57         <!-- RPC 远程调用相关 -->
58         <dependency>
59             <groupId>com.iailab</groupId>
60             <artifactId>iailab-common-rpc</artifactId>
61             <optional>true</optional>
62         </dependency>
63
64         <!-- 业务组件 -->
65         <dependency>
66             <groupId>com.iailab</groupId>
67             <artifactId>iailab-module-infra-api</artifactId> <!-- 需要使用它,进行操作日志的记录 -->
68             <version>${revision}</version>
69         </dependency>
70         <dependency>
71             <groupId>com.iailab</groupId>
72             <artifactId>iailab-module-system-api</artifactId> <!-- 需要使用它,进行错误码的记录 -->
73             <version>${revision}</version>
74         </dependency>
75
76         <!-- xss -->
77         <dependency>
78             <groupId>org.jsoup</groupId>
79             <artifactId>jsoup</artifactId>
80         </dependency>
81
82         <!-- Test 测试相关 -->
83         <dependency>
84             <groupId>org.springframework.boot</groupId>
85             <artifactId>spring-boot-starter-test</artifactId>
86             <scope>test</scope>
87         </dependency>
88         <dependency>
89             <groupId>org.mockito</groupId>
90             <artifactId>mockito-inline</artifactId>
91             <scope>test</scope>
92         </dependency>
93     </dependencies>
94
95     <build>
96         <plugins>
97             <plugin>
98                 <groupId>org.springframework.boot</groupId>
99                 <artifactId>spring-boot-maven-plugin</artifactId>
100             </plugin>
101             <plugin>
102                 <groupId>org.apache.maven.plugins</groupId>
103                 <artifactId>maven-assembly-plugin</artifactId>
104                 <version>3.3.0</version>
105                 <executions>
106                     <execution>
107                         <phase>package</phase>
108                         <goals>
109                             <goal>single</goal>
110                         </goals>
111                     </execution>
112                 </executions>
113                 <configuration>
114                     <descriptorRefs>
115                         <descriptorRef>jar-with-dependencies</descriptorRef>
116                     </descriptorRefs>
117                 </configuration>
118             </plugin>
119         </plugins>
120     </build>
121 </project>