提交 | 用户 | 时间
|
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 |
<artifactId>iailab-cloud</artifactId> |
|
7 |
<groupId>com.iailab</groupId> |
|
8 |
<version>${revision}</version> |
|
9 |
</parent> |
|
10 |
<modelVersion>4.0.0</modelVersion> |
|
11 |
<artifactId>iailab-gateway</artifactId> |
|
12 |
<packaging>jar</packaging> |
|
13 |
|
|
14 |
<name>${project.artifactId}</name> |
|
15 |
<description>API 服务网关,基于 Spring Cloud Gateway 实现</description> |
4d4165
|
16 |
<url>https://xxxx</url> |
e7c126
|
17 |
|
H |
18 |
<properties> |
|
19 |
<revision>0.0.1</revision> |
|
20 |
</properties> |
|
21 |
|
|
22 |
<dependencies> |
|
23 |
<!-- 业务组件 --> |
|
24 |
<dependency> |
|
25 |
<groupId>com.iailab</groupId> |
|
26 |
<artifactId>iailab-module-system-api</artifactId> |
|
27 |
<version>${revision}</version> |
|
28 |
<exclusions> |
|
29 |
<exclusion> |
|
30 |
<groupId>org.springdoc</groupId> |
|
31 |
<artifactId>springdoc-openapi-webmvc-core</artifactId> |
|
32 |
</exclusion> |
|
33 |
</exclusions> |
|
34 |
</dependency> |
|
35 |
|
|
36 |
<!-- Gateway 网关相关 --> |
|
37 |
<dependency> |
|
38 |
<groupId>org.springframework.cloud</groupId> |
|
39 |
<artifactId>spring-cloud-starter-gateway</artifactId> |
|
40 |
</dependency> |
|
41 |
|
|
42 |
<dependency> |
|
43 |
<groupId>javax.servlet</groupId> |
|
44 |
<artifactId>javax.servlet-api</artifactId> |
|
45 |
</dependency> |
|
46 |
|
|
47 |
<dependency> |
|
48 |
<groupId>com.github.xiaoymin</groupId> <!-- 接口文档 --> |
|
49 |
<artifactId>knife4j-gateway-spring-boot-starter</artifactId> |
|
50 |
</dependency> |
|
51 |
|
|
52 |
<!-- RPC 远程调用相关 --> |
|
53 |
<dependency> |
|
54 |
<groupId>org.springframework.cloud</groupId> |
|
55 |
<artifactId>spring-cloud-starter-loadbalancer</artifactId> |
|
56 |
</dependency> |
|
57 |
|
|
58 |
<!-- Registry 注册中心相关 --> |
|
59 |
<dependency> |
|
60 |
<groupId>com.alibaba.cloud</groupId> |
|
61 |
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> |
|
62 |
</dependency> |
|
63 |
|
|
64 |
<!-- Config 配置中心相关 --> |
|
65 |
<dependency> |
|
66 |
<groupId>com.alibaba.cloud</groupId> |
|
67 |
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> |
|
68 |
</dependency> |
|
69 |
|
|
70 |
<!-- 监控相关 --> |
|
71 |
<dependency> |
|
72 |
<groupId>com.iailab</groupId> |
|
73 |
<artifactId>iailab-common-monitor</artifactId> |
|
74 |
</dependency> |
|
75 |
|
|
76 |
<!-- 工具类相关 --> |
|
77 |
<dependency> |
|
78 |
<groupId>com.google.guava</groupId> |
|
79 |
<artifactId>guava</artifactId> |
|
80 |
</dependency> |
|
81 |
|
|
82 |
</dependencies> |
|
83 |
|
|
84 |
|
|
85 |
<build> |
|
86 |
<!-- 设置构建的 jar 包名 --> |
|
87 |
<finalName>${project.artifactId}</finalName> |
|
88 |
<plugins> |
|
89 |
<!-- 打包 --> |
|
90 |
<plugin> |
|
91 |
<groupId>org.springframework.boot</groupId> |
|
92 |
<artifactId>spring-boot-maven-plugin</artifactId> |
|
93 |
<version>${spring.boot.version}</version> <!-- 如果 spring.boot.version 版本修改,则这里也要跟着修改 --> |
|
94 |
<executions> |
|
95 |
<execution> |
|
96 |
<goals> |
|
97 |
<goal>repackage</goal> <!-- 将引入的 jar 打入其中 --> |
|
98 |
</goals> |
|
99 |
</execution> |
|
100 |
</executions> |
|
101 |
</plugin> |
|
102 |
</plugins> |
|
103 |
</build> |
|
104 |
|
|
105 |
</project> |