潘志宝
2024-12-16 df99e46312fdd5ee830f1451e478f6658e09f9ed
提交 | 用户 | 时间
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-monitor</artifactId>
12
13     <dependencies>
14         <!-- Spring Cloud 基础 -->
15         <dependency>
16             <groupId>org.springframework.cloud</groupId>
17             <artifactId>spring-cloud-starter-bootstrap</artifactId>
18         </dependency>
19         <!--Spring Boot Admin Server监控服务端-->
20         <dependency>
21             <groupId>org.springframework.boot</groupId>
22             <artifactId>spring-boot-starter-actuator</artifactId>
23         </dependency>
24         <dependency>
25             <groupId>de.codecentric</groupId>
26             <artifactId>spring-boot-admin-starter-client</artifactId>
27         </dependency>
28         <dependency>
29             <groupId>de.codecentric</groupId>
30             <artifactId>spring-boot-admin-starter-server</artifactId>
31         </dependency>
32         <dependency>
33             <groupId>com.alibaba.cloud</groupId>
34             <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
35         </dependency>
36
37         <!-- 监控相关 -->
38         <dependency>
39             <groupId>com.iailab</groupId>
40             <artifactId>iailab-common-monitor</artifactId>
41         </dependency>
42
43         <!--安全模块-->
44         <dependency>
45             <groupId>org.springframework.boot</groupId>
46             <artifactId>spring-boot-starter-security</artifactId>
47         </dependency>
48         <dependency>
49             <groupId>org.springframework.boot</groupId>
50             <artifactId>spring-boot-starter-web</artifactId>
51             <exclusions>
52                 <exclusion>
53                     <groupId>org.springframework.boot</groupId>
54                     <artifactId>spring-boot-starter-tomcat</artifactId>
55                 </exclusion>
56             </exclusions>
57         </dependency>
58         <!--undertow容器-->
59         <dependency>
60             <groupId>org.springframework.boot</groupId>
61             <artifactId>spring-boot-starter-undertow</artifactId>
62         </dependency>
63     </dependencies>
64
65     <build>
d9f9ba 66         <!-- 设置构建的 jar 包名 -->
H 67         <finalName>${project.artifactId}</finalName>
e7c126 68         <plugins>
d9f9ba 69             <!-- 打包 -->
e7c126 70             <plugin>
H 71                 <groupId>org.springframework.boot</groupId>
72                 <artifactId>spring-boot-maven-plugin</artifactId>
d9f9ba 73                 <version>${spring.boot.version}</version> <!-- 如果 spring.boot.version 版本修改,则这里也要跟着修改 -->
H 74                 <executions>
75                     <execution>
76                         <goals>
77                             <goal>repackage</goal> <!-- 将引入的 jar 打入其中 -->
78                         </goals>
79                     </execution>
80                 </executions>
e7c126 81             </plugin>
H 82         </plugins>
83     </build>
84 </project>