pom.xml 7.9 KB

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