pom.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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>cn.newfeifan.zx</groupId>
  7. <artifactId>feifan-framework</artifactId>
  8. <version>${revision}</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>feifan-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>cn.newfeifan.zx</groupId>
  19. <artifactId>feifan-common</artifactId>
  20. </dependency>
  21. <!-- Web 相关 -->
  22. <dependency>
  23. <!-- 为什么是 websocket 依赖 security 呢?而不是 security 拓展 websocket 呢?
  24. 因为 websocket 和 LoginUser 当前登录的用户有一定的相关性,具体可见 WebSocketSessionManagerImpl 逻辑。
  25. 如果让 security 拓展 websocket 的话,会导致 websocket 组件的封装很散,进而增大理解成本。
  26. -->
  27. <groupId>cn.newfeifan.zx</groupId>
  28. <artifactId>feifan-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>cn.newfeifan.zx</groupId>
  38. <artifactId>feifan-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. <!-- 业务组件 -->
  56. <dependency>
  57. <!-- 为什么要依赖 tenant 组件?
  58. 因为广播某个类型的用户时候,需要根据租户过滤下,避免广播到别的租户!
  59. -->
  60. <groupId>cn.newfeifan.zx</groupId>
  61. <artifactId>feifan-spring-boot-starter-biz-tenant</artifactId>
  62. <scope>provided</scope>
  63. </dependency>
  64. </dependencies>
  65. </project>