pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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. <parent>
  6. <artifactId>web</artifactId>
  7. <groupId>com.gyee</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>consumer-hb</artifactId>
  12. <properties>
  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.3.7.RELEASE</spring-boot.version>
  17. <spring-cloud-alibaba.version>2.2.5.RELEASE</spring-cloud-alibaba.version>
  18. <feign-version>9.5.0</feign-version>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. </dependency>
  25. <!-- springboot官方依赖: spring-boot-starter-xxx-->
  26. <!-- springboot非官方依赖:xxx-spring-boot-starter-->
  27. <!--springcloud依赖:spring-cloud-starter-xxx -->
  28. <!--spring-cloud-alibaba 服务注册发现-->
  29. <dependency>
  30. <groupId>com.alibaba.cloud</groupId>
  31. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  32. </dependency>
  33. <!--spring-boot-starter-actuator-->
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-actuator</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.projectlombok</groupId>
  40. <artifactId>lombok</artifactId>
  41. </dependency>
  42. <!--spring-cloud-alibaba nacos 配置中心的依赖-->
  43. <!--
  44. <dependency>
  45. <groupId>com.alibaba.cloud</groupId>
  46. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  47. </dependency>
  48. -->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-web</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-actuator</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.gyee</groupId>
  59. <artifactId>common</artifactId>
  60. <version>${project.version}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.cloud</groupId>
  64. <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
  65. </dependency>
  66. <!--spring-cloud-starter-openfeign-->
  67. <dependency>
  68. <groupId>org.springframework.cloud</groupId>
  69. <artifactId>spring-cloud-starter-openfeign</artifactId>
  70. </dependency>
  71. <!--引入Spring Boot内嵌的Tomcat对JSP的解析包-->
  72. <dependency>
  73. <groupId>org.apache.tomcat.embed</groupId>
  74. <artifactId>tomcat-embed-jasper</artifactId>
  75. </dependency>
  76. <!--spring-cloud-starter-netflix-ribbon-->
  77. <!--
  78. <dependency>
  79. <groupId>org.springframework.cloud</groupId>
  80. <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
  81. </dependency>
  82. -->
  83. <!--spring-cloud-starter-openfeign-->
  84. <!--<dependency>
  85. <groupId>org.springframework.cloud</groupId>
  86. <artifactId>spring-cloud-starter-openfeign</artifactId>
  87. </dependency>-->
  88. <dependency>
  89. <groupId>org.springframework.boot</groupId>
  90. <artifactId>spring-boot-starter-aop</artifactId>
  91. </dependency>
  92. <!-- 添加swagger2 -->
  93. <dependency>
  94. <groupId>io.springfox</groupId>
  95. <artifactId>springfox-swagger2</artifactId>
  96. <version>2.9.2</version>
  97. <exclusions>
  98. <exclusion>
  99. <groupId>io.swagger</groupId>
  100. <artifactId>swagger-annotations</artifactId>
  101. </exclusion>
  102. <exclusion>
  103. <groupId>io.swagger</groupId>
  104. <artifactId>swagger-models</artifactId>
  105. </exclusion>
  106. </exclusions>
  107. </dependency>
  108. <dependency>
  109. <groupId>io.springfox</groupId>
  110. <artifactId>springfox-swagger-ui</artifactId>
  111. <version>2.9.2</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>io.swagger</groupId>
  115. <artifactId>swagger-annotations</artifactId>
  116. <version>1.5.21</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>io.swagger</groupId>
  120. <artifactId>swagger-models</artifactId>
  121. <version>1.5.21</version>
  122. </dependency>
  123. <!-- https://mvnrepository.com/artifact/io.github.swagger2markup/swagger2markup -->
  124. <dependency>
  125. <groupId>io.swagger</groupId>
  126. <artifactId>swagger-core</artifactId>
  127. <version>1.6.2</version>
  128. </dependency>
  129. <!--sentinel数据持久化-->
  130. <dependency>
  131. <groupId>com.alibaba.csp</groupId>
  132. <artifactId>sentinel-datasource-nacos</artifactId>
  133. </dependency>
  134. <!--sentinel-datasource-extension数据源扩展-->
  135. <dependency>
  136. <groupId>com.alibaba.csp</groupId>
  137. <artifactId>sentinel-datasource-extension</artifactId>
  138. </dependency>
  139. <dependency>
  140. <groupId>com.alibaba.cloud</groupId>
  141. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.hibernate</groupId>
  145. <artifactId>hibernate-validator</artifactId>
  146. <version>6.0.18.Final</version>
  147. </dependency>
  148. </dependencies>
  149. <dependencyManagement>
  150. <dependencies>
  151. <dependency>
  152. <groupId>com.alibaba.cloud</groupId>
  153. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  154. <version>${spring-cloud-alibaba.version}</version>
  155. <type>pom</type>
  156. <scope>import</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.springframework.boot</groupId>
  160. <artifactId>spring-boot-dependencies</artifactId>
  161. <version>${spring-boot.version}</version>
  162. <type>pom</type>
  163. <scope>import</scope>
  164. </dependency>
  165. <!-- spring-cloud-dependencies -->
  166. <dependency>
  167. <groupId>org.springframework.cloud</groupId>
  168. <artifactId>spring-cloud-dependencies</artifactId>
  169. <version>Hoxton.SR5</version>
  170. <type>pom</type>
  171. <scope>import</scope>
  172. </dependency>
  173. </dependencies>
  174. </dependencyManagement>
  175. <build>
  176. <plugins>
  177. <plugin>
  178. <groupId>org.springframework.boot</groupId>
  179. <artifactId>spring-boot-maven-plugin</artifactId>
  180. <executions>
  181. <execution>
  182. <goals>
  183. <goal>repackage</goal>
  184. </goals>
  185. </execution>
  186. </executions>
  187. </plugin>
  188. </plugins>
  189. </build>
  190. </project>