pom.xml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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. <parent>
  6. <groupId>shop.alien</groupId>
  7. <artifactId>alien-cloud</artifactId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <artifactId>alien-gateway</artifactId>
  11. <version>1.0.0</version>
  12. <name>alien-gateway</name>
  13. <description>alien-gateway</description>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter</artifactId>
  22. </dependency>
  23. <!--允许你使用流(Flux和Mono)来处理异步、非阻塞的数据-->
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-webflux</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.cloud</groupId>
  30. <artifactId>spring-cloud-starter-gateway</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-web</artifactId>
  35. <exclusions>
  36. <exclusion>
  37. <groupId>com.fasterxml.jackson.core</groupId>
  38. <artifactId>jackson-databind</artifactId>
  39. </exclusion>
  40. </exclusions>
  41. </dependency>
  42. <!--loadBalancer负载均衡-->
  43. <dependency>
  44. <groupId>org.springframework.cloud</groupId>
  45. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-jdbc</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.baomidou</groupId>
  53. <artifactId>mybatis-plus-boot-starter</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.baomidou</groupId>
  57. <artifactId>mybatis-plus-annotation</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.baomidou</groupId>
  61. <artifactId>mybatis-plus-extension</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.alibaba</groupId>
  65. <artifactId>druid-spring-boot-starter</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>mysql</groupId>
  69. <artifactId>mysql-connector-java</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.baomidou</groupId>
  73. <artifactId>mybatis-plus-core</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>io.jsonwebtoken</groupId>
  77. <artifactId>jjwt</artifactId>
  78. <version>0.9.0</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.projectlombok</groupId>
  82. <artifactId>lombok</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.alibaba</groupId>
  86. <artifactId>fastjson</artifactId>
  87. </dependency>
  88. <!--Swagger Start-->
  89. <dependency>
  90. <groupId>io.springfox</groupId>
  91. <artifactId>springfox-swagger2</artifactId>
  92. <exclusions>
  93. <exclusion>
  94. <artifactId>swagger-annotations</artifactId>
  95. <groupId>io.swagger</groupId>
  96. </exclusion>
  97. <exclusion>
  98. <artifactId>swagger-models</artifactId>
  99. <groupId>io.swagger</groupId>
  100. </exclusion>
  101. </exclusions>
  102. </dependency>
  103. <dependency>
  104. <groupId>io.swagger</groupId>
  105. <artifactId>swagger-annotations</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>io.swagger</groupId>
  109. <artifactId>swagger-models</artifactId>
  110. </dependency>
  111. <dependency>
  112. <groupId>io.springfox</groupId>
  113. <artifactId>springfox-swagger-ui</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.github.xiaoymin</groupId>
  117. <artifactId>swagger-bootstrap-ui</artifactId>
  118. </dependency>
  119. <!--Swagger End-->
  120. <!--token-->
  121. <dependency>
  122. <groupId>com.auth0</groupId>
  123. <artifactId>java-jwt</artifactId>
  124. <version>3.4.0</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.springframework.boot</groupId>
  128. <artifactId>spring-boot-starter-data-redis</artifactId>
  129. </dependency>
  130. <!--redis连接池需要此依赖-->
  131. <dependency>
  132. <groupId>org.apache.commons</groupId>
  133. <artifactId>commons-pool2</artifactId>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.apache.commons</groupId>
  137. <artifactId>commons-lang3</artifactId>
  138. </dependency>
  139. <!-- <dependency>-->
  140. <!-- <groupId>shop.alien</groupId>-->
  141. <!-- <artifactId>alien-util</artifactId>-->
  142. <!-- <version>1.0.0</version>-->
  143. <!-- </dependency>-->
  144. <dependency>
  145. <groupId>shop.alien</groupId>
  146. <artifactId>alien-entity</artifactId>
  147. <version>1.0.0</version>
  148. </dependency>
  149. <!-- <dependency>-->
  150. <!-- <groupId>shop.alien</groupId>-->
  151. <!-- <artifactId>alien-config</artifactId>-->
  152. <!-- <version>1.0.0</version>-->
  153. <!-- </dependency>-->
  154. <dependency>
  155. <groupId>com.alibaba.cloud</groupId>
  156. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  157. </dependency>
  158. <dependency>
  159. <groupId>com.alibaba.cloud</groupId>
  160. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  161. </dependency>
  162. </dependencies>
  163. <build>
  164. <plugins>
  165. <plugin>
  166. <groupId>org.apache.maven.plugins</groupId>
  167. <artifactId>maven-dependency-plugin</artifactId>
  168. <version>3.1.2</version> <!-- 使用最新版本 -->
  169. <executions>
  170. <execution>
  171. <id>copy-dependencies</id>
  172. <phase>prepare-package</phase> <!-- 在package之前执行 -->
  173. <goals>
  174. <goal>copy-dependencies</goal>
  175. </goals>
  176. <configuration>
  177. <outputDirectory>${project.build.directory}/lib</outputDirectory> <!-- 指定输出目录 -->
  178. <includeScope>runtime</includeScope> <!-- 仅包含运行时依赖 -->
  179. </configuration>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. <plugin>
  184. <groupId>org.springframework.boot</groupId>
  185. <artifactId>spring-boot-maven-plugin</artifactId>
  186. <configuration>
  187. <mainClass>shop.alien.gateway.GatewayApplication</mainClass>
  188. <layout>ZIP</layout>
  189. <includes>
  190. <include>
  191. <groupId>nothing</groupId>
  192. <artifactId>nothing</artifactId>
  193. </include>
  194. </includes>
  195. </configuration>
  196. <executions>
  197. <execution>
  198. <goals>
  199. <goal>repackage</goal>
  200. </goals>
  201. </execution>
  202. </executions>
  203. </plugin>
  204. <plugin>
  205. <groupId>org.apache.maven.plugins</groupId>
  206. <artifactId>maven-compiler-plugin</artifactId>
  207. <configuration>
  208. <source>8</source>
  209. <target>8</target>
  210. </configuration>
  211. </plugin>
  212. </plugins>
  213. </build>
  214. </project>