pom.xml 7.4 KB

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