pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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-driver</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>bff-driver</name>
  9. <description>bff-driver</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. <!-- Feign进行跨服务传递文件依赖 -->
  51. <dependency>
  52. <groupId>io.github.openfeign.form</groupId>
  53. <artifactId>feign-form</artifactId>
  54. <version>3.8.0</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>io.github.openfeign.form</groupId>
  58. <artifactId>feign-form-spring</artifactId>
  59. <version>3.8.0</version>
  60. </dependency>
  61. <!--Redis-->
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-data-redis</artifactId>
  65. </dependency>
  66. <!--Sa-Token核心库-->
  67. <dependency>
  68. <groupId>cn.dev33</groupId>
  69. <artifactId>sa-token-spring-boot-starter</artifactId>
  70. <version>1.28.0</version>
  71. </dependency>
  72. <!--用Redis缓存授权信息-->
  73. <dependency>
  74. <groupId>cn.dev33</groupId>
  75. <artifactId>sa-token-dao-redis</artifactId>
  76. <version>1.28.0</version>
  77. </dependency>
  78. <!--注解式权限验证-->
  79. <dependency>
  80. <groupId>cn.dev33</groupId>
  81. <artifactId>sa-token-spring-aop</artifactId>
  82. <version>1.28.0</version>
  83. </dependency>
  84. <!--后端验证-->
  85. <dependency>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-starter-validation</artifactId>
  88. </dependency>
  89. <!--SpringDoc-->
  90. <dependency>
  91. <groupId>org.springdoc</groupId>
  92. <artifactId>springdoc-openapi-spring-boot-2-webmvc</artifactId>
  93. <version>3.1.5</version>
  94. </dependency>
  95. <!--依赖common模块-->
  96. <dependency>
  97. <groupId>com.example</groupId>
  98. <artifactId>common</artifactId>
  99. <version>0.0.1-SNAPSHOT</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-starter-test</artifactId>
  104. <scope>test</scope>
  105. <exclusions>
  106. <exclusion>
  107. <groupId>org.junit.vintage</groupId>
  108. <artifactId>junit-vintage-engine</artifactId>
  109. </exclusion>
  110. </exclusions>
  111. </dependency>
  112. <!-- txlcn 分布式事务 -->
  113. <dependency>
  114. <groupId>com.codingapi.txlcn</groupId>
  115. <artifactId>txlcn-tc</artifactId>
  116. <version>${codingapi.version}</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.codingapi.txlcn</groupId>
  120. <artifactId>txlcn-txmsg-netty</artifactId>
  121. <version>${codingapi.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.mybatis.spring.boot</groupId>
  125. <artifactId>mybatis-spring-boot-starter</artifactId>
  126. <version>2.2.0</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>mysql</groupId>
  130. <artifactId>mysql-connector-java</artifactId>
  131. <scope>runtime</scope>
  132. </dependency>
  133. </dependencies>
  134. <dependencyManagement>
  135. <dependencies>
  136. <dependency>
  137. <groupId>org.springframework.boot</groupId>
  138. <artifactId>spring-boot-dependencies</artifactId>
  139. <version>${spring-boot.version}</version>
  140. <type>pom</type>
  141. <scope>import</scope>
  142. </dependency>
  143. </dependencies>
  144. </dependencyManagement>
  145. <build>
  146. <plugins>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-compiler-plugin</artifactId>
  150. <version>3.8.1</version>
  151. <configuration>
  152. <source>15</source>
  153. <target>15</target>
  154. <encoding>UTF-8</encoding>
  155. </configuration>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.springframework.boot</groupId>
  159. <artifactId>spring-boot-maven-plugin</artifactId>
  160. <version>2.3.7.RELEASE</version>
  161. <configuration>
  162. <mainClass>com.example.hxds.bff.driver.BffDriverApplication</mainClass>
  163. </configuration>
  164. <executions>
  165. <execution>
  166. <id>repackage</id>
  167. <goals>
  168. <goal>repackage</goal>
  169. </goals>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. </plugins>
  174. </build>
  175. </project>