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-websocket</artifactId>
12     <packaging>jar</packaging>
13
14     <name>${project.artifactId}</name>
15     <description>WebSocket 框架,支持多节点的广播</description>
4d4165 16     <url>http://172.16.8.100:8888/summary/iailab-plat.git</url>
e7c126 17
H 18
19     <dependencies>
20         <dependency>
21             <groupId>com.iailab</groupId>
22             <artifactId>iailab-common</artifactId>
23         </dependency>
24
25         <!-- Web 相关 -->
26         <dependency>
27             <!-- 为什么是 websocket 依赖 security 呢?而不是 security 拓展 websocket 呢?
28                  因为 websocket 和 LoginUser 当前登录的用户有一定的相关性,具体可见 WebSocketSessionManagerImpl 逻辑。
29                  如果让 security 拓展 websocket 的话,会导致 websocket 组件的封装很散,进而增大理解成本。
30             -->
31             <groupId>com.iailab</groupId>
32             <artifactId>iailab-common-security</artifactId>
33             <scope>provided</scope>
34         </dependency>
35
36         <dependency>
37             <groupId>org.springframework.boot</groupId>
38             <artifactId>spring-boot-starter-websocket</artifactId>
39         </dependency>
40
41         <!-- 消息队列相关 -->
42         <dependency>
43             <groupId>com.iailab</groupId>
44             <artifactId>iailab-common-mq</artifactId>
45         </dependency>
46         <dependency>
47             <groupId>org.springframework.kafka</groupId>
48             <artifactId>spring-kafka</artifactId>
49             <optional>true</optional>
50         </dependency>
51         <dependency>
52             <groupId>org.springframework.amqp</groupId>
53             <artifactId>spring-rabbit</artifactId>
54             <optional>true</optional>
55         </dependency>
56         <dependency>
57             <groupId>org.apache.rocketmq</groupId>
58             <artifactId>rocketmq-spring-boot-starter</artifactId>
59             <optional>true</optional>
60         </dependency>
61
62         <!-- 业务组件 -->
63         <dependency>
64             <!-- 为什么要依赖 tenant 组件?
65                 因为广播某个类型的用户时候,需要根据租户过滤下,避免广播到别的租户!
66             -->
67             <groupId>com.iailab</groupId>
68             <artifactId>iailab-common-biz-tenant</artifactId>
69             <scope>provided</scope>
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>