pom.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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. <!-- 网关升级 MyBatis Plus 版本,解决 fat jar 中 Lambda 序列化问题 -->
  50. <dependency>
  51. <groupId>com.baomidou</groupId>
  52. <artifactId>mybatis-plus-boot-starter</artifactId>
  53. <version>3.5.3.1</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.baomidou</groupId>
  57. <artifactId>mybatis-plus-annotation</artifactId>
  58. <version>3.5.3.1</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.baomidou</groupId>
  62. <artifactId>mybatis-plus-extension</artifactId>
  63. <version>3.5.3.1</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.alibaba</groupId>
  67. <artifactId>druid-spring-boot-starter</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>mysql</groupId>
  71. <artifactId>mysql-connector-java</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.baomidou</groupId>
  75. <artifactId>mybatis-plus-core</artifactId>
  76. <version>3.5.3.1</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>io.jsonwebtoken</groupId>
  80. <artifactId>jjwt</artifactId>
  81. <version>0.9.0</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.projectlombok</groupId>
  85. <artifactId>lombok</artifactId>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.alibaba</groupId>
  89. <artifactId>fastjson</artifactId>
  90. </dependency>
  91. <!-- 验证码 -->
  92. <dependency>
  93. <groupId>pro.fessional</groupId>
  94. <artifactId>kaptcha</artifactId>
  95. </dependency>
  96. <!--Swagger Start-->
  97. <dependency>
  98. <groupId>io.springfox</groupId>
  99. <artifactId>springfox-swagger2</artifactId>
  100. <exclusions>
  101. <exclusion>
  102. <artifactId>swagger-annotations</artifactId>
  103. <groupId>io.swagger</groupId>
  104. </exclusion>
  105. <exclusion>
  106. <artifactId>swagger-models</artifactId>
  107. <groupId>io.swagger</groupId>
  108. </exclusion>
  109. </exclusions>
  110. </dependency>
  111. <dependency>
  112. <groupId>io.swagger</groupId>
  113. <artifactId>swagger-annotations</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>io.swagger</groupId>
  117. <artifactId>swagger-models</artifactId>
  118. </dependency>
  119. <dependency>
  120. <groupId>io.springfox</groupId>
  121. <artifactId>springfox-swagger-ui</artifactId>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.github.xiaoymin</groupId>
  125. <artifactId>swagger-bootstrap-ui</artifactId>
  126. </dependency>
  127. <!--Swagger End-->
  128. <!--token-->
  129. <dependency>
  130. <groupId>com.auth0</groupId>
  131. <artifactId>java-jwt</artifactId>
  132. <version>3.4.0</version>
  133. </dependency>
  134. <!--redis连接池需要此依赖-->
  135. <dependency>
  136. <groupId>org.apache.commons</groupId>
  137. <artifactId>commons-pool2</artifactId>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.apache.commons</groupId>
  141. <artifactId>commons-lang3</artifactId>
  142. </dependency>
  143. <dependency>
  144. <groupId>shop.alien</groupId>
  145. <artifactId>alien-entity</artifactId>
  146. <version>1.0.0</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>shop.alien</groupId>
  150. <artifactId>alien-util</artifactId>
  151. <version>1.0.0</version>
  152. <exclusions>
  153. <exclusion>
  154. <groupId>org.springframework.boot</groupId>
  155. <artifactId>spring-boot-starter-web</artifactId>
  156. </exclusion>
  157. </exclusions>
  158. </dependency>
  159. <dependency>
  160. <groupId>com.alibaba.cloud</groupId>
  161. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  162. </dependency>
  163. <dependency>
  164. <groupId>com.alibaba.cloud</groupId>
  165. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  166. </dependency>
  167. <dependency>
  168. <groupId>org.springframework.cloud</groupId>
  169. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.springframework.cloud</groupId>
  173. <artifactId>spring-cloud-starter-openfeign</artifactId>
  174. </dependency>
  175. <dependency>
  176. <groupId>javax.xml.bind</groupId>
  177. <artifactId>jaxb-api</artifactId>
  178. </dependency>
  179. </dependencies>
  180. <build>
  181. <plugins>
  182. <plugin>
  183. <!-- 指定项目编译时的java版本和编码方式 -->
  184. <groupId>org.apache.maven.plugins</groupId>
  185. <artifactId>maven-compiler-plugin</artifactId>
  186. <configuration>
  187. <target>1.8</target>
  188. <source>1.8</source>
  189. <encoding>UTF-8</encoding>
  190. <parameters>true</parameters>
  191. <!-- <compilerArguments> <extdirs>lib</extdirs> </compilerArguments> -->
  192. </configuration>
  193. </plugin>
  194. <plugin>
  195. <groupId>org.springframework.boot</groupId>
  196. <artifactId>spring-boot-maven-plugin</artifactId>
  197. <configuration>
  198. <mainClass>shop.alien.gateway.AlienGatewayApplication</mainClass>
  199. </configuration>
  200. <executions>
  201. <execution>
  202. <goals>
  203. <goal>repackage</goal>
  204. </goals>
  205. </execution>
  206. </executions>
  207. </plugin>
  208. <plugin>
  209. <groupId>org.apache.maven.plugins</groupId>
  210. <artifactId>maven-jar-plugin</artifactId>
  211. <configuration>
  212. <archive>
  213. <manifest>
  214. <!-- 是否要把第三方jar加入到类构建路径 -->
  215. <addClasspath>true</addClasspath>
  216. <!-- 外部依赖jar包的最终位置 -->
  217. <classpathPrefix>lib/</classpathPrefix>
  218. <!--指定jar程序入口-->
  219. <mainClass>shop.alien.gateway.AlienGatewayApplication</mainClass>
  220. </manifest>
  221. </archive>
  222. </configuration>
  223. </plugin>
  224. <!--拷贝依赖到jar外面的lib目录-->
  225. <plugin>
  226. <groupId>org.apache.maven.plugins</groupId>
  227. <artifactId>maven-dependency-plugin</artifactId>
  228. <executions>
  229. <execution>
  230. <id>copy-dependencies</id>
  231. <phase>prepare-package</phase>
  232. <goals>
  233. <goal>copy-dependencies</goal>
  234. </goals>
  235. <configuration>
  236. <!-- 拷贝项目依赖包到lib/目录下 -->
  237. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  238. <overWriteReleases>false</overWriteReleases>
  239. <overWriteSnapshots>false</overWriteSnapshots>
  240. <overWriteIfNewer>true</overWriteIfNewer>
  241. </configuration>
  242. </execution>
  243. </executions>
  244. </plugin>
  245. </plugins>
  246. </build>
  247. </project>