pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.txz</groupId>
  7. <artifactId>gateway</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <properties>
  11. <java.version>1.8</java.version>
  12. </properties>
  13. <!-- Inherit defaults from Spring Boot -->
  14. <parent>
  15. <groupId>org.springframework.boot</groupId>
  16. <artifactId>spring-boot-starter-parent</artifactId>
  17. <version>2.7.18</version>
  18. </parent>
  19. <dependencies>
  20. <!--Spring Boot依赖-->
  21. <dependency>
  22. <groupId>com.txz</groupId>
  23. <artifactId>operating-api</artifactId>
  24. <version>1.0.0-SNAPSHOT</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-actuator</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.txz</groupId>
  32. <artifactId>cif-api</artifactId>
  33. <version>1.0.0-SNAPSHOT</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-web</artifactId>
  38. <!-- 移除tomcat容器-->
  39. <exclusions>
  40. <exclusion>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-tomcat</artifactId>
  43. </exclusion>
  44. </exclusions>
  45. </dependency>
  46. <!-- 替换undertow容器 -->
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-undertow</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-webflux</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>cn.hutool</groupId>
  61. <artifactId>hutool-all</artifactId>
  62. <version>RELEASE</version>
  63. <scope>compile</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework.retry</groupId>
  67. <artifactId>spring-retry</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-aop</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.cloud</groupId>
  75. <artifactId>spring-cloud-starter-openfeign</artifactId>
  76. <!-- <version>1.4.3.RELEASE</version>-->
  77. </dependency>
  78. <dependency>
  79. <groupId>com.alibaba.cloud</groupId>
  80. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  81. <version>2.2.9.RELEASE</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.alibaba.cloud</groupId>
  85. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  86. <version>2.2.9.RELEASE</version>
  87. </dependency>
  88. <!--redis依赖-->
  89. <dependency>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-starter-jdbc</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-starter-test</artifactId>
  96. <scope>test</scope>
  97. </dependency>
  98. <!-- <dependency> -->
  99. <!-- <groupId>org.springframework.cloud</groupId> -->
  100. <!-- <artifactId>spring-cloud-starter-zipkin</artifactId> -->
  101. <!-- <version>2.1.7.RELEASE</version> -->
  102. <!-- </dependency> -->
  103. <!--
  104. <dependency>
  105. <groupId>org.springframework.cloud</groupId>
  106. <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
  107. <version>2.2.10.RELEASE</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.netflix.zuul</groupId>
  111. <artifactId>zuul-core</artifactId>
  112. <version>1.3.1</version>
  113. </dependency>
  114. -->
  115. <!--常用库依赖-->
  116. <dependency>
  117. <groupId>commons-codec</groupId>
  118. <artifactId>commons-codec</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.apache.commons</groupId>
  122. <artifactId>commons-lang3</artifactId>
  123. <version>3.5</version>
  124. </dependency>
  125. <!-- <dependency>-->
  126. <!-- <groupId>com.google.guava</groupId>-->
  127. <!-- <artifactId>guava</artifactId>-->
  128. <!-- <version>18.0</version>-->
  129. <!-- </dependency>-->
  130. <dependency>
  131. <groupId>javax.servlet</groupId>
  132. <artifactId>javax.servlet-api</artifactId>
  133. <version>3.1.0</version>
  134. <scope>provided</scope>
  135. </dependency>
  136. <!--MySQL JDBC驱动-->
  137. <dependency>
  138. <groupId>mysql</groupId>
  139. <artifactId>mysql-connector-java</artifactId>
  140. <version>8.0.33</version>
  141. <scope>runtime</scope>
  142. </dependency>
  143. <!--MyBatis 及 插件依赖-->
  144. <dependency>
  145. <groupId>org.mybatis</groupId>
  146. <artifactId>mybatis-spring</artifactId>
  147. <!-- <version>1.3.1</version>-->
  148. <version>2.0.1</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>org.mybatis</groupId>
  152. <artifactId>mybatis</artifactId>
  153. <version>3.4.4</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>tk.mybatis</groupId>
  157. <artifactId>mapper</artifactId>
  158. <version>3.4.0</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>com.github.pagehelper</groupId>
  162. <artifactId>pagehelper-spring-boot-starter</artifactId>
  163. <version>1.2.3</version>
  164. </dependency>
  165. <!--阿里 FastJson依赖-->
  166. <dependency>
  167. <groupId>com.alibaba</groupId>
  168. <artifactId>fastjson</artifactId>
  169. <!-- <version>1.2.22</version>-->
  170. <version>1.2.58</version>
  171. </dependency>
  172. <!--代码生成器依赖-->
  173. <dependency>
  174. <groupId>org.freemarker</groupId>
  175. <artifactId>freemarker</artifactId>
  176. <version>2.3.23</version>
  177. <scope>test</scope>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.mybatis.generator</groupId>
  181. <artifactId>mybatis-generator-core</artifactId>
  182. <version>1.3.5</version>
  183. <scope>test</scope>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.apache.dubbo</groupId>
  187. <artifactId>dubbo-spring-boot-starter</artifactId>
  188. <version>3.0.10</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>com.esotericsoftware</groupId>
  192. <artifactId>kryo</artifactId>
  193. <version>4.0.2</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>de.javakaffee</groupId>
  197. <artifactId>kryo-serializers</artifactId>
  198. <version>0.45</version>
  199. </dependency>
  200. <!-- Dubbo -->
  201. <dependency>
  202. <groupId>org.apache.dubbo</groupId>
  203. <artifactId>dubbo</artifactId>
  204. <version>3.0.10</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.apache.dubbo</groupId>
  208. <artifactId>dubbo-serialization-kryo</artifactId>
  209. <version>2.7.9</version>
  210. </dependency>
  211. <!-- Dubbo Registry Nacos -->
  212. <dependency>
  213. <groupId>org.apache.dubbo</groupId>
  214. <artifactId>dubbo-registry-nacos</artifactId>
  215. <version>3.0.10</version>
  216. </dependency>
  217. <!-- <dependency> -->
  218. <!-- <groupId>com.alibaba.nacos</groupId> -->
  219. <!-- <artifactId>nacos-client</artifactId> -->
  220. <!-- <exclusions> -->
  221. <!-- <exclusion> -->
  222. <!-- <groupId>com.google.guava</groupId> -->
  223. <!-- <artifactId>guava</artifactId> -->
  224. <!-- </exclusion> -->
  225. <!-- </exclusions> -->
  226. <!-- </dependency> -->
  227. <!-- swagger2 -->
  228. <!-- <dependency> -->
  229. <!-- <groupId>io.springfox</groupId> -->
  230. <!-- <artifactId>springfox-swagger2</artifactId> -->
  231. <!-- <version>2.9.2</version> -->
  232. <!-- </dependency> -->
  233. <!-- <dependency> -->
  234. <!-- <groupId>io.springfox</groupId> -->
  235. <!-- <artifactId>springfox-swagger-ui</artifactId> -->
  236. <!-- <version>2.9.2</version> -->
  237. <!-- </dependency> -->
  238. <!-- <dependency> -->
  239. <!-- <groupId>com.github.xiaoymin</groupId> -->
  240. <!-- <artifactId>swagger-bootstrap-ui</artifactId> -->
  241. <!-- <version>1.8.5</version> -->
  242. <!-- </dependency> -->
  243. <!-- swagger2 皮肤 -->
  244. <!-- <dependency> -->
  245. <!-- <groupId>com.github.caspar-chen</groupId> -->
  246. <!-- <artifactId>swagger-ui-layer</artifactId> -->
  247. <!-- <version>1.1.2</version> -->
  248. <!-- </dependency> -->
  249. <!-- <dependency> -->
  250. <!-- <groupId>com.spring4all</groupId> -->
  251. <!-- <artifactId>swagger-spring-boot-starter</artifactId> -->
  252. <!-- <version>1.8.0.RELEASE</version> -->
  253. <!-- <scope>compile</scope> -->
  254. <!-- </dependency> -->
  255. <dependency>
  256. <groupId>org.springframework.boot</groupId>
  257. <artifactId>spring-boot-starter-test</artifactId>
  258. <scope>test</scope>
  259. </dependency>
  260. <dependency>
  261. <groupId>junit</groupId>
  262. <artifactId>junit</artifactId>
  263. <version>4.13.2</version>
  264. <scope>test</scope>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.springdoc</groupId>
  268. <artifactId>springdoc-openapi-ui</artifactId>
  269. <version>1.6.14</version>
  270. </dependency>
  271. <dependency>
  272. <groupId>io.jsonwebtoken</groupId>
  273. <artifactId>jjwt</artifactId>
  274. <version>0.9.1</version>
  275. </dependency>
  276. <dependency>
  277. <groupId>org.projectlombok</groupId>
  278. <artifactId>lombok</artifactId>
  279. </dependency>
  280. <dependency>
  281. <groupId>org.springframework.cloud</groupId>
  282. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  283. </dependency>
  284. <dependency>
  285. <groupId>org.springframework.cloud</groupId>
  286. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  287. </dependency>
  288. <dependency>
  289. <groupId>org.springframework.cloud</groupId>
  290. <artifactId>spring-cloud-starter-gateway</artifactId>
  291. </dependency>
  292. <dependency>
  293. <groupId>org.springframework.cloud</groupId>
  294. <artifactId>spring-cloud-starter-circuitbreaker-reactor-resilience4j</artifactId>
  295. </dependency>
  296. </dependencies>
  297. <dependencyManagement>
  298. <dependencies>
  299. <dependency>
  300. <groupId>org.springframework.cloud</groupId>
  301. <artifactId>spring-cloud-dependencies</artifactId>
  302. <version>2021.0.8</version>
  303. <type>pom</type>
  304. <scope>import</scope>
  305. </dependency>
  306. <!-- <dependency> -->
  307. <!-- <groupId>com.alibaba.cloud</groupId> -->
  308. <!-- <artifactId>spring-cloud-alibaba-dependencies</artifactId> -->
  309. <!-- <version>2021.0.5.0</version> -->
  310. <!-- <type>pom</type> -->
  311. <!-- <scope>import</scope> -->
  312. <!-- </dependency> -->
  313. </dependencies>
  314. </dependencyManagement>
  315. <build>
  316. <plugins>
  317. <plugin>
  318. <groupId>org.springframework.boot</groupId>
  319. <artifactId>spring-boot-maven-plugin</artifactId>
  320. <configuration>
  321. <finalName>gateway</finalName>
  322. </configuration>
  323. </plugin>
  324. <plugin>
  325. <artifactId>maven-compiler-plugin</artifactId>
  326. <configuration>
  327. <source>${java.version}</source>
  328. <target>${java.version}</target>
  329. <encoding>UTF-8</encoding>
  330. </configuration>
  331. </plugin>
  332. </plugins>
  333. </build>
  334. <distributionManagement>
  335. <snapshotRepository>
  336. <id>nexus-snapshots</id>
  337. <name>Nexus Snapshot Repository</name>
  338. <url>http://124.220.229.80:9091/repository/maven-snapshots/</url>
  339. <!-- 删除uniqueVersion和layout,使用默认值即可 -->
  340. </snapshotRepository>
  341. <repository>
  342. <id>nexus-releases</id>
  343. <name>Nexus Release Repository</name>
  344. <url>http://124.220.229.80:9091/repository/maven-releases/</url>
  345. </repository>
  346. </distributionManagement>
  347. </project>