pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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.example</groupId>
  6. <artifactId>bff-customer</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>bff-customer</name>
  9. <description>bff-customer</description>
  10. <parent>
  11. <groupId>com.example</groupId>
  12. <artifactId>hxds</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. </parent>
  15. <properties>
  16. <java.version>15</java.version>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. <spring-boot.version>2.3.7.RELEASE</spring-boot.version>
  20. <spring-cloud-alibaba.version>2.2.2.RELEASE</spring-cloud-alibaba.version>
  21. <codingapi.version>5.0.2.RELEASE</codingapi.version>
  22. </properties>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-web</artifactId>
  27. <exclusions>
  28. <exclusion>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-tomcat</artifactId>
  31. </exclusion>
  32. </exclusions>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-jetty</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.alibaba.cloud</groupId>
  40. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.alibaba.cloud</groupId>
  44. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.cloud</groupId>
  48. <artifactId>spring-cloud-starter-openfeign</artifactId>
  49. </dependency>
  50. <!--Redis-->
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-data-redis</artifactId>
  54. </dependency>
  55. <!--Sa-Token核心库-->
  56. <dependency>
  57. <groupId>cn.dev33</groupId>
  58. <artifactId>sa-token-spring-boot-starter</artifactId>
  59. <version>1.28.0</version>
  60. </dependency>
  61. <!--用Redis缓存授权信息-->
  62. <dependency>
  63. <groupId>cn.dev33</groupId>
  64. <artifactId>sa-token-dao-redis</artifactId>
  65. <version>1.28.0</version>
  66. </dependency>
  67. <!--注解式权限验证-->
  68. <dependency>
  69. <groupId>cn.dev33</groupId>
  70. <artifactId>sa-token-spring-aop</artifactId>
  71. <version>1.28.0</version>
  72. </dependency>
  73. <!--后端验证-->
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-starter-validation</artifactId>
  77. </dependency>
  78. <!--SpringDoc-->
  79. <dependency>
  80. <groupId>org.springdoc</groupId>
  81. <artifactId>springdoc-openapi-spring-boot-2-webmvc</artifactId>
  82. <version>3.1.5</version>
  83. </dependency>
  84. <!--依赖common模块-->
  85. <dependency>
  86. <groupId>com.example</groupId>
  87. <artifactId>common</artifactId>
  88. <version>0.0.1-SNAPSHOT</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-starter-test</artifactId>
  93. <scope>test</scope>
  94. <exclusions>
  95. <exclusion>
  96. <groupId>org.junit.vintage</groupId>
  97. <artifactId>junit-vintage-engine</artifactId>
  98. </exclusion>
  99. </exclusions>
  100. </dependency>
  101. <!-- txlcn 分布式事务 -->
  102. <dependency>
  103. <groupId>com.codingapi.txlcn</groupId>
  104. <artifactId>txlcn-tc</artifactId>
  105. <version>${codingapi.version}</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.codingapi.txlcn</groupId>
  109. <artifactId>txlcn-txmsg-netty</artifactId>
  110. <version>${codingapi.version}</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.mybatis.spring.boot</groupId>
  114. <artifactId>mybatis-spring-boot-starter</artifactId>
  115. <version>2.2.0</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>mysql</groupId>
  119. <artifactId>mysql-connector-java</artifactId>
  120. <scope>runtime</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>com.alibaba</groupId>
  124. <artifactId>druid-spring-boot-starter</artifactId>
  125. <version>1.1.13</version>
  126. </dependency>
  127. </dependencies>
  128. <dependencyManagement>
  129. <dependencies>
  130. <dependency>
  131. <groupId>org.springframework.boot</groupId>
  132. <artifactId>spring-boot-dependencies</artifactId>
  133. <version>${spring-boot.version}</version>
  134. <type>pom</type>
  135. <scope>import</scope>
  136. </dependency>
  137. </dependencies>
  138. </dependencyManagement>
  139. <build>
  140. <plugins>
  141. <plugin>
  142. <groupId>org.apache.maven.plugins</groupId>
  143. <artifactId>maven-compiler-plugin</artifactId>
  144. <version>3.8.1</version>
  145. <configuration>
  146. <source>15</source>
  147. <target>15</target>
  148. <encoding>UTF-8</encoding>
  149. </configuration>
  150. </plugin>
  151. <plugin>
  152. <groupId>org.springframework.boot</groupId>
  153. <artifactId>spring-boot-maven-plugin</artifactId>
  154. <version>2.3.7.RELEASE</version>
  155. <configuration>
  156. <mainClass>com.example.hxds.bff.customer.BffCustomerApplication</mainClass>
  157. </configuration>
  158. <executions>
  159. <execution>
  160. <id>repackage</id>
  161. <goals>
  162. <goal>repackage</goal>
  163. </goals>
  164. </execution>
  165. </executions>
  166. </plugin>
  167. </plugins>
  168. </build>
  169. </project>