pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>3.2.0</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.launch</groupId>
  12. <artifactId>app</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>platform</name>
  15. <description>platform</description>
  16. <!-- 当前Maven工程的打包方式,可选值有下面三种: -->
  17. <!-- jar:表示这个工程是一个Java工程 -->
  18. <!-- war:表示这个工程是一个Web工程 -->
  19. <!-- pom:表示这个工程是“管理其他工程”的工程 -->
  20. <packaging>jar</packaging>
  21. <properties>
  22. <!-- 工程构建过程中读取源码时使用的字符集 -->
  23. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  24. <java.version>21</java.version>
  25. <spring-cloud.version>2023.0.0-RC1</spring-cloud.version>
  26. <nacos.client.version>2.2.1</nacos.client.version>
  27. <revision>2022.0.0.0</revision>
  28. </properties>
  29. <dependencies>
  30. <!--web -->
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-web</artifactId>
  34. </dependency>
  35. <!--cloud -->
  36. <dependency>
  37. <groupId>org.springframework.cloud</groupId>
  38. <artifactId>spring-cloud-starter-config</artifactId>
  39. </dependency>
  40. <!--Nacos-->
  41. <dependency>
  42. <groupId>com.alibaba.nacos</groupId>
  43. <artifactId>nacos-client</artifactId>
  44. <version>${nacos.client.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.alibaba.cloud</groupId>
  48. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  49. <version>${revision}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.alibaba.cloud</groupId>
  53. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  54. <version>${revision}</version>
  55. </dependency>
  56. <!-- 使用bootstrap.yml必须依赖此类 -->
  57. <dependency>
  58. <groupId>org.springframework.cloud</groupId>
  59. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  60. </dependency>
  61. <!--webflux-->
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-webflux</artifactId>
  65. </dependency>
  66. <!-- SpringCloud Openfeign -->
  67. <dependency>
  68. <groupId>org.springframework.cloud</groupId>
  69. <artifactId>spring-cloud-starter-openfeign</artifactId>
  70. </dependency>
  71. <!-- SpringCloud Loadbalancer -->
  72. <dependency>
  73. <groupId>org.springframework.cloud</groupId>
  74. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  75. </dependency>
  76. <!-- db -->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-data-r2dbc</artifactId>
  80. </dependency>
  81. <!-- https://mvnrepository.com/artifact/io.asyncer/r2dbc-mysql -->
  82. <dependency>
  83. <groupId>io.asyncer</groupId>
  84. <artifactId>r2dbc-mysql</artifactId>
  85. <version>1.0.5</version>
  86. </dependency>
  87. <!-- r2dbc 连接池 -->
  88. <dependency>
  89. <groupId>io.r2dbc</groupId>
  90. <artifactId>r2dbc-pool</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-starter-data-jdbc</artifactId>
  95. </dependency>
  96. <!--springdoc openapi swagger ui -->
  97. <dependency>
  98. <groupId>org.springdoc</groupId>
  99. <artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
  100. <version>2.2.0</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.springdoc</groupId>
  104. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  105. <version>2.2.0</version>
  106. </dependency>
  107. <!--搭配校验使用-->
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-validation</artifactId>
  111. <version>3.2.0</version>
  112. </dependency>
  113. <!--让响应结果更美观 -->
  114. <dependency>
  115. <groupId>com.alibaba.cola</groupId>
  116. <artifactId>cola-component-dto</artifactId>
  117. <version>4.3.2</version>
  118. </dependency>
  119. <!--elasticsearch -->
  120. <dependency>
  121. <groupId>org.springframework.boot</groupId>
  122. <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
  123. </dependency>
  124. <!--lombok -->
  125. <dependency>
  126. <groupId>org.projectlombok</groupId>
  127. <artifactId>lombok</artifactId>
  128. <optional>true</optional>
  129. </dependency>
  130. <!--test -->
  131. <dependency>
  132. <groupId>org.springframework.boot</groupId>
  133. <artifactId>spring-boot-starter-test</artifactId>
  134. <scope>test</scope>
  135. </dependency>
  136. </dependencies>
  137. <dependencyManagement>
  138. <dependencies>
  139. <dependency>
  140. <groupId>org.springframework.cloud</groupId>
  141. <artifactId>spring-cloud-dependencies</artifactId>
  142. <version>${spring-cloud.version}</version>
  143. <type>pom</type>
  144. <scope>import</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>com.alibaba.cloud</groupId>
  148. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  149. <version>${revision}</version>
  150. <type>pom</type>
  151. <scope>import</scope>
  152. </dependency>
  153. </dependencies>
  154. </dependencyManagement>
  155. <build>
  156. <plugins>
  157. <plugin>
  158. <groupId>org.springframework.boot</groupId>
  159. <artifactId>spring-boot-maven-plugin</artifactId>
  160. <version>3.2.0</version>
  161. <executions>
  162. <execution>
  163. <id>pre-integration-test</id>
  164. <goals>
  165. <goal>start</goal>
  166. </goals>
  167. </execution>
  168. <execution>
  169. <id>post-integration-test</id>
  170. <goals>
  171. <goal>stop</goal>
  172. </goals>
  173. </execution>
  174. </executions>
  175. </plugin>
  176. </plugins>
  177. </build>
  178. <repositories>
  179. <repository>
  180. <id>spring-milestones</id>
  181. <name>Spring Milestones</name>
  182. <url>https://repo.spring.io/milestone</url>
  183. <snapshots>
  184. <enabled>false</enabled>
  185. </snapshots>
  186. </repository>
  187. </repositories>
  188. </project>