pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. <artifactId>fs</artifactId>
  7. <groupId>com.fs</groupId>
  8. <version>1.1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>fs-websocket</artifactId>
  12. <description>
  13. WebSocket独立服务
  14. </description>
  15. <dependencies>
  16. <!-- Spring Boot WebSocket -->
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-websocket</artifactId>
  20. </dependency>
  21. <!-- Spring Boot Web -->
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-web</artifactId>
  25. </dependency>
  26. <!-- SpringDoc OpenAPI(支持Spring Boot 3) -->
  27. <dependency>
  28. <groupId>org.springdoc</groupId>
  29. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  30. </dependency>
  31. <!-- FastJSON -->
  32. <dependency>
  33. <groupId>com.alibaba</groupId>
  34. <artifactId>fastjson</artifactId>
  35. </dependency>
  36. <!-- Lombok -->
  37. <dependency>
  38. <groupId>org.projectlombok</groupId>
  39. <artifactId>lombok</artifactId>
  40. <optional>true</optional>
  41. </dependency>
  42. <!-- 显式添加swagger-annotations依赖,因为父项目中被排除了 -->
  43. <dependency>
  44. <groupId>io.swagger</groupId>
  45. <artifactId>swagger-annotations</artifactId>
  46. <version>1.5.21</version>
  47. </dependency>
  48. <!-- 显式添加swagger-models依赖,因为父项目中被排除了 -->
  49. <dependency>
  50. <groupId>io.swagger</groupId>
  51. <artifactId>swagger-models</artifactId>
  52. <version>1.5.21</version>
  53. </dependency>
  54. <!-- 通用模块 -->
  55. <dependency>
  56. <groupId>com.fs</groupId>
  57. <artifactId>fs-common</artifactId>
  58. <!-- 排除 security -->
  59. <exclusions>
  60. <exclusion>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-security</artifactId>
  63. </exclusion>
  64. </exclusions>
  65. </dependency>
  66. <!-- Spring Boot DevTools -->
  67. <dependency>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-devtools</artifactId>
  70. <optional>true</optional>
  71. </dependency>
  72. </dependencies>
  73. <build>
  74. <plugins>
  75. <plugin>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-maven-plugin</artifactId>
  78. <configuration>
  79. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  80. </configuration>
  81. <executions>
  82. <execution>
  83. <goals>
  84. <goal>repackage</goal>
  85. </goals>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-war-plugin</artifactId>
  92. <version>3.1.0</version>
  93. <configuration>
  94. <failOnMissingWebXml>false</failOnMissingWebXml>
  95. <warName>${project.artifactId}</warName>
  96. </configuration>
  97. </plugin>
  98. </plugins>
  99. <finalName>${project.artifactId}</finalName>
  100. </build>
  101. </project>