pom.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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. <groupId>com.study</groupId>
  6. <artifactId>cloud-mall</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>cloud-mall</name>
  9. <description>cloud-mall</description>
  10. <properties>
  11. <maven.compiler.source>1.8</maven.compiler.source>
  12. <maven.compiler.target>1.8</maven.compiler.target>
  13. <java.version>1.8</java.version>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  16. <spring-boot.version>2.6.13</spring-boot.version>
  17. <!-- Tools -->
  18. <mybatisplus.boot.starter.version>3.5.3.1</mybatisplus.boot.starter.version>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-data-redis</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-devtools</artifactId>
  32. <scope>runtime</scope>
  33. <optional>true</optional>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.mysql</groupId>
  37. <artifactId>mysql-connector-j</artifactId>
  38. <scope>runtime</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-configuration-processor</artifactId>
  43. <optional>true</optional>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.projectlombok</groupId>
  47. <artifactId>lombok</artifactId>
  48. <optional>true</optional>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-test</artifactId>
  53. <scope>test</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.baomidou</groupId>
  57. <artifactId>mybatis-plus-boot-starter</artifactId>
  58. <version>${mybatisplus.boot.starter.version}</version>
  59. </dependency>
  60. <!-- validator -->
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-validation</artifactId>
  64. </dependency>
  65. <!-- jwt -->
  66. <dependency>
  67. <groupId>io.jsonwebtoken</groupId>
  68. <artifactId>jjwt-api</artifactId>
  69. <version>0.10.7</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>io.jsonwebtoken</groupId>
  73. <artifactId>jjwt-impl</artifactId>
  74. <version>0.10.7</version>
  75. <scope>runtime</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>io.jsonwebtoken</groupId>
  79. <artifactId>jjwt-jackson</artifactId>
  80. <version>0.10.7</version>
  81. <scope>runtime</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.assertj</groupId>
  85. <artifactId>assertj-core</artifactId>
  86. <version>3.16.1</version>
  87. <scope>compile</scope>
  88. </dependency>
  89. <!-- 本地缓存 -->
  90. <dependency>
  91. <groupId>net.oschina.j2cache</groupId>
  92. <artifactId>j2cache-spring-boot2-starter</artifactId>
  93. <version>2.8.0-release</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>net.oschina.j2cache</groupId>
  97. <artifactId>j2cache-core</artifactId>
  98. <version>2.8.0-release</version>
  99. <exclusions>
  100. <exclusion>
  101. <groupId>org.slf4j</groupId>
  102. <artifactId>slf4j-simple</artifactId>
  103. </exclusion>
  104. <exclusion>
  105. <groupId>org.slf4j</groupId>
  106. <artifactId>slf4j-api</artifactId>
  107. </exclusion>
  108. </exclusions>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.springframework.security</groupId>
  112. <artifactId>spring-security-crypto</artifactId>
  113. </dependency>
  114. <!-- xk-time -->
  115. <dependency>
  116. <groupId>com.github.xkzhangsan</groupId>
  117. <artifactId>xk-time</artifactId>
  118. <version>3.1.0</version>
  119. </dependency>
  120. <!-- hutool cache -->
  121. <dependency>
  122. <groupId>cn.hutool</groupId>
  123. <artifactId>hutool-core</artifactId>
  124. <version>5.3.3</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.github.wechatpay-apiv3</groupId>
  128. <artifactId>wechatpay-apache-httpclient</artifactId>
  129. <version>0.4.9</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.redisson</groupId>
  133. <artifactId>redisson</artifactId>
  134. <version>3.21.1</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.springframework.boot</groupId>
  138. <artifactId>spring-boot-starter-amqp</artifactId>
  139. </dependency>
  140. </dependencies>
  141. <dependencyManagement>
  142. <dependencies>
  143. <dependency>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-dependencies</artifactId>
  146. <version>${spring-boot.version}</version>
  147. <type>pom</type>
  148. <scope>import</scope>
  149. </dependency>
  150. </dependencies>
  151. </dependencyManagement>
  152. <build>
  153. <plugins>
  154. <plugin>
  155. <groupId>org.springframework.boot</groupId>
  156. <artifactId>spring-boot-maven-plugin</artifactId>
  157. <version>${spring-boot.version}</version>
  158. <executions>
  159. <execution>
  160. <goals>
  161. <goal>repackage</goal>
  162. </goals>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. <!-- smart doc -->
  167. <plugin>
  168. <groupId>com.github.shalousun</groupId>
  169. <artifactId>smart-doc-maven-plugin</artifactId>
  170. <version>2.1.4</version>
  171. <configuration>
  172. <!--指定生成文档的使用的配置文件,配置文件放在自己的项目中-->
  173. <configFile>./src/main/resources/smart-doc.json</configFile>
  174. <!--指定项目名称-->
  175. <projectName>云商城-后台服务</projectName>
  176. <includes>
  177. <!--格式为:groupId:artifactId;参考如下-->
  178. <include>com.chuanghai:patrol-parent</include>
  179. </includes>
  180. </configuration>
  181. <executions>
  182. <execution>
  183. <!--如果不需要在执行编译时启动smart-doc,则将phase注释掉-->
  184. <phase>compile</phase>
  185. <goals>
  186. <!--smart-doc提供了html、openapi、markdown等goal,可按需配置-->
  187. <goal>html</goal>
  188. </goals>
  189. </execution>
  190. </executions>
  191. </plugin>
  192. </plugins>
  193. </build>
  194. </project>