pom.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0" encoding="UTF-8"?>
  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.cy</groupId>
  7. <artifactId>guoyan-framework</artifactId>
  8. <version>${revision}</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>guoyan-spring-boot-starter-websocket</artifactId>
  12. <packaging>jar</packaging>
  13. <name>${project.artifactId}</name>
  14. <description>WebSocket 框架,支持多节点的广播</description>
  15. <url>https://github.com/YunaiV/ruoyi-vue-pro</url>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.cy</groupId>
  19. <artifactId>guoyan-common</artifactId>
  20. </dependency>
  21. <!-- Web 相关 -->
  22. <dependency>
  23. <!-- 为什么是 websocket 依赖 security 呢?而不是 security 拓展 websocket 呢?
  24. 因为 websocket 和 LoginUser 当前登录的用户有一定的相关性,具体可见 WebSocketSessionManagerImpl 逻辑。
  25. 如果让 security 拓展 websocket 的话,会导致 websocket 组件的封装很散,进而增大理解成本。
  26. -->
  27. <groupId>com.cy</groupId>
  28. <artifactId>guoyan-spring-boot-starter-security</artifactId>
  29. <scope>provided</scope>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-websocket</artifactId>
  34. </dependency>
  35. <!-- 消息队列相关 -->
  36. <dependency>
  37. <groupId>com.cy</groupId>
  38. <artifactId>guoyan-spring-boot-starter-mq</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.kafka</groupId>
  42. <artifactId>spring-kafka</artifactId>
  43. <optional>true</optional>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.amqp</groupId>
  47. <artifactId>spring-rabbit</artifactId>
  48. <optional>true</optional>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.rocketmq</groupId>
  52. <artifactId>rocketmq-spring-boot-starter</artifactId>
  53. <optional>true</optional>
  54. </dependency>
  55. </dependencies>
  56. </project>