houzhongjian
2024-08-08 08e3e8f80a1c524176084f4b71c0152981302765
提交 | 用户 | 时间
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-monitor</artifactId>
12     <packaging>jar</packaging>
13
14     <name>${project.artifactId}</name>
15     <description>服务监控,提供链路追踪、日志服务、指标收集等等功能</description>
16     <url>https://github.com/YunaiV/ruoyi-vue-pro</url>
17
18     <dependencies>
19         <dependency>
20             <groupId>com.iailab</groupId>
21             <artifactId>iailab-common</artifactId>
22         </dependency>
23
24         <!-- Spring 核心 -->
25         <dependency>
26             <groupId>org.springframework.boot</groupId>
27             <artifactId>spring-boot-starter-aop</artifactId>
28         </dependency>
29
30         <!-- Web 相关 -->
31         <dependency>
32             <groupId>org.springframework</groupId>
33             <artifactId>spring-web</artifactId>
34             <scope>provided</scope> <!-- 设置为 provided,只有 TraceFilter 使用 -->
35         </dependency>
36
37         <dependency>
38             <groupId>jakarta.servlet</groupId>
39             <artifactId>jakarta.servlet-api</artifactId>
40             <scope>provided</scope> <!-- 设置为 provided,只有 TraceFilter 使用 -->
41         </dependency>
42
43         <!-- 监控相关 -->
44         <dependency>
45             <groupId>io.opentracing</groupId>
46             <artifactId>opentracing-util</artifactId>
47         </dependency>
48         <dependency>
49             <groupId>org.apache.skywalking</groupId>
50             <artifactId>apm-toolkit-trace</artifactId>
51         </dependency>
52         <dependency>
53             <groupId>org.apache.skywalking</groupId>
54             <artifactId>apm-toolkit-logback-1.x</artifactId>
55         </dependency>
56         <dependency>
57             <groupId>org.apache.skywalking</groupId>
58             <artifactId>apm-toolkit-opentracing</artifactId>
59         </dependency>
60
61         <!-- Micrometer 对 Prometheus 的支持 -->
62         <dependency>
63             <groupId>io.micrometer</groupId>
64             <artifactId>micrometer-registry-prometheus</artifactId>
65         </dependency>
66
67         <dependency>
68             <groupId>de.codecentric</groupId>
69             <artifactId>spring-boot-admin-starter-client</artifactId> <!-- 实现 Spring Boot Admin Server 服务端 -->
70         </dependency>
71     </dependencies>
72
73     <build>
74         <plugins>
75             <plugin>
76                 <groupId>org.springframework.boot</groupId>
77                 <artifactId>spring-boot-maven-plugin</artifactId>
78             </plugin>
79             <plugin>
80                 <groupId>org.apache.maven.plugins</groupId>
81                 <artifactId>maven-assembly-plugin</artifactId>
82                 <version>3.3.0</version>
83                 <executions>
84                     <execution>
85                         <phase>package</phase>
86                         <goals>
87                             <goal>single</goal>
88                         </goals>
89                     </execution>
90                 </executions>
91                 <configuration>
92                     <descriptorRefs>
93                         <descriptorRef>jar-with-dependencies</descriptorRef>
94                     </descriptorRefs>
95                 </configuration>
96             </plugin>
97         </plugins>
98     </build>
99
100 </project>