pom.xml 7.9 KB

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