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