pom.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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. <!-- 关联父类-->
  6. <parent>
  7. <groupId>com.launch.webflux</groupId>
  8. <artifactId>launch</artifactId>
  9. <version>1.0.0</version>
  10. </parent>
  11. <artifactId>launch-admin</artifactId>
  12. <description>Demo project for Spring Boot</description>
  13. <packaging>jar</packaging>
  14. <properties>
  15. <!-- 工程构建过程中读取源码时使用的字符集 -->
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <java.version>21</java.version>
  18. <spring-cloud.version>2023.0.0-RC1</spring-cloud.version>
  19. <r2dbc-mysql>1.0.5</r2dbc-mysql>
  20. <openapi.ui>2.2.0</openapi.ui>
  21. <validation>3.2.0</validation>
  22. <cola-component-dto>4.3.2</cola-component-dto>
  23. <revision>2022.0.0.0</revision>
  24. <redis.clients>5.0.2</redis.clients>
  25. </properties>
  26. <dependencies>
  27. <!-- <dependency>-->
  28. <!-- <groupId>redis.clients</groupId>-->
  29. <!-- <artifactId>jedis</artifactId>-->
  30. <!-- <version>2.9.0</version>-->
  31. <!-- </dependency>-->
  32. <!-- db -->
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-data-r2dbc</artifactId>
  36. </dependency>
  37. <!-- https://mvnrepository.com/artifact/io.asyncer/r2dbc-mysql -->
  38. <dependency>
  39. <groupId>io.asyncer</groupId>
  40. <artifactId>r2dbc-mysql</artifactId>
  41. <version>${r2dbc-mysql}</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>cn.hutool</groupId>
  45. <artifactId>hutool-all</artifactId>
  46. <version>5.3.7</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.alibaba</groupId>
  50. <artifactId>fastjson</artifactId>
  51. <version>1.2.83</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.plumelog</groupId>
  55. <artifactId>plumelog-logback</artifactId>
  56. <version>3.4.2</version>
  57. </dependency>
  58. <!--单点登录 -->
  59. <!-- <dependency>-->
  60. <!-- <groupId>com.xuxueli</groupId>-->
  61. <!-- <artifactId>xxl-sso-core</artifactId>-->
  62. <!-- <version>1.1.1-SNAPSHOT</version>-->
  63. <!-- </dependency>-->
  64. <!-- r2dbc 连接池 -->
  65. <dependency>
  66. <groupId>io.r2dbc</groupId>
  67. <artifactId>r2dbc-pool</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-data-jdbc</artifactId>
  72. </dependency>
  73. <!--springdoc openapi swagger ui -->
  74. <dependency>
  75. <groupId>org.springdoc</groupId>
  76. <artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
  77. <version>${openapi.ui}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.springdoc</groupId>
  81. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  82. <version>${openapi.ui}</version>
  83. </dependency>
  84. <!--搭配校验使用-->
  85. <dependency>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-starter-validation</artifactId>
  88. <version>${validation}</version>
  89. </dependency>
  90. <!--让响应结果更美观 -->
  91. <dependency>
  92. <groupId>com.alibaba.cola</groupId>
  93. <artifactId>cola-component-dto</artifactId>
  94. <version>${cola-component-dto}</version>
  95. </dependency>
  96. <!--lombok -->
  97. <dependency>
  98. <groupId>org.projectlombok</groupId>
  99. <artifactId>lombok</artifactId>
  100. <optional>true</optional>
  101. </dependency>
  102. <!--test -->
  103. <dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-starter-test</artifactId>
  106. <scope>test</scope>
  107. </dependency>
  108. <!--models-->
  109. <dependency>
  110. <groupId>com.launch.webflux</groupId>
  111. <artifactId>launch-common</artifactId>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.launch.webflux</groupId>
  115. <artifactId>launch-r2dbc</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.launch.webflux</groupId>
  119. <artifactId>launch-redis</artifactId>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.launch.webflux</groupId>
  123. <artifactId>launch-elasticsearch</artifactId>
  124. </dependency>
  125. </dependencies>
  126. <build>
  127. <plugins>
  128. <plugin>
  129. <groupId>com.github.shalousun</groupId>
  130. <artifactId>smart-doc-maven-plugin</artifactId>
  131. <version>2.3.1</version>
  132. <!--建议用最新版本-->
  133. <configuration>
  134. <!--指定生成文档的使用的配置文件,配置文件放在自己的项目中-->
  135. <configFile>./src/main/resources/smart-doc.json</configFile>
  136. <!--指定项目名称-->
  137. <projectName>SmartDoc-Demo</projectName>
  138. <!--smart-doc实现自动分析依赖树加载第三方依赖的源码,如果一些框架依赖库加载不到导致报错,这时请使用excludes排除掉-->
  139. <excludes>
  140. <!--格式为:groupId:artifactId;参考如下-->
  141. <!--1.0.7版本开始你还可以用正则匹配排除,如:poi.* -->
  142. <exclude>com.alibaba:fastjson</exclude>
  143. </excludes>
  144. <!--自1.0.8版本开始,插件提供includes支持-->
  145. <!--smart-doc能自动分析依赖树加载所有依赖源码,原则上会影响文档构建效率,因此你可以使用includes来让插件加载你配置的组件-->
  146. <includes>
  147. <!--格式为:groupId:artifactId;参考如下-->
  148. <include>com.launch.system.controller.tool.product</include>
  149. </includes>
  150. </configuration>
  151. <executions>
  152. <execution>
  153. <!--如果不需要在执行编译时启动smart-doc,则将phase注释掉-->
  154. <!--<phase>compile</phase>-->
  155. <goals>
  156. <!--smart-doc提供了html、openapi、markdown等goal,可按需配置-->
  157. <!--<goal>html</goal>-->
  158. </goals>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-compiler-plugin</artifactId>
  165. <version>3.5.1</version>
  166. <configuration>
  167. <source>21</source>
  168. <target>21</target>
  169. </configuration>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-surefire-plugin</artifactId>
  174. <version>2.18.1</version>
  175. <configuration>
  176. <skipTests>true</skipTests>
  177. </configuration>
  178. </plugin>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-deploy-plugin</artifactId>
  182. <version>2.8.2</version>
  183. <configuration>
  184. <skip>true</skip>
  185. </configuration>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.springframework.boot</groupId>
  189. <artifactId>spring-boot-maven-plugin</artifactId>
  190. <configuration>
  191. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  192. <includeSystemScope>true</includeSystemScope>
  193. </configuration>
  194. <executions>
  195. <execution>
  196. <goals>
  197. <goal>repackage</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. </plugins>
  203. </build>
  204. <repositories>
  205. <repository>
  206. <id>spring-milestones</id>
  207. <name>Spring Milestones</name>
  208. <url>https://repo.spring.io/milestone</url>
  209. <snapshots>
  210. <enabled>false</enabled>
  211. </snapshots>
  212. </repository>
  213. </repositories>
  214. </project>