pom.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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. <!-- 验证码 -->
  87. <dependency>
  88. <groupId>pro.fessional</groupId>
  89. <artifactId>kaptcha</artifactId>
  90. </dependency>
  91. <!--Swagger Start-->
  92. <dependency>
  93. <groupId>io.springfox</groupId>
  94. <artifactId>springfox-swagger2</artifactId>
  95. <exclusions>
  96. <exclusion>
  97. <artifactId>swagger-annotations</artifactId>
  98. <groupId>io.swagger</groupId>
  99. </exclusion>
  100. <exclusion>
  101. <artifactId>swagger-models</artifactId>
  102. <groupId>io.swagger</groupId>
  103. </exclusion>
  104. </exclusions>
  105. </dependency>
  106. <dependency>
  107. <groupId>io.swagger</groupId>
  108. <artifactId>swagger-annotations</artifactId>
  109. </dependency>
  110. <dependency>
  111. <groupId>io.swagger</groupId>
  112. <artifactId>swagger-models</artifactId>
  113. </dependency>
  114. <dependency>
  115. <groupId>io.springfox</groupId>
  116. <artifactId>springfox-swagger-ui</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.github.xiaoymin</groupId>
  120. <artifactId>swagger-bootstrap-ui</artifactId>
  121. </dependency>
  122. <!--Swagger End-->
  123. <!--token-->
  124. <dependency>
  125. <groupId>com.auth0</groupId>
  126. <artifactId>java-jwt</artifactId>
  127. <version>3.4.0</version>
  128. </dependency>
  129. <!--redis连接池需要此依赖-->
  130. <dependency>
  131. <groupId>org.apache.commons</groupId>
  132. <artifactId>commons-pool2</artifactId>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.apache.commons</groupId>
  136. <artifactId>commons-lang3</artifactId>
  137. </dependency>
  138. <dependency>
  139. <groupId>shop.alien</groupId>
  140. <artifactId>alien-entity</artifactId>
  141. <version>1.0.0</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>shop.alien</groupId>
  145. <artifactId>alien-util</artifactId>
  146. <version>1.0.0</version>
  147. <exclusions>
  148. <exclusion>
  149. <groupId>org.springframework.boot</groupId>
  150. <artifactId>spring-boot-starter-web</artifactId>
  151. </exclusion>
  152. </exclusions>
  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. <dependency>
  163. <groupId>org.springframework.cloud</groupId>
  164. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.springframework.cloud</groupId>
  168. <artifactId>spring-cloud-starter-openfeign</artifactId>
  169. </dependency>
  170. <dependency>
  171. <groupId>javax.xml.bind</groupId>
  172. <artifactId>jaxb-api</artifactId>
  173. </dependency>
  174. </dependencies>
  175. <build>
  176. <plugins>
  177. <plugin>
  178. <!-- 指定项目编译时的java版本和编码方式 -->
  179. <groupId>org.apache.maven.plugins</groupId>
  180. <artifactId>maven-compiler-plugin</artifactId>
  181. <configuration>
  182. <target>1.8</target>
  183. <source>1.8</source>
  184. <encoding>UTF-8</encoding>
  185. <!-- <compilerArguments> <extdirs>lib</extdirs> </compilerArguments> -->
  186. </configuration>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-jar-plugin</artifactId>
  191. <configuration>
  192. <archive>
  193. <manifest>
  194. <!-- 是否要把第三方jar加入到类构建路径 -->
  195. <addClasspath>true</addClasspath>
  196. <!-- 外部依赖jar包的最终位置 -->
  197. <classpathPrefix>lib/</classpathPrefix>
  198. <!--指定jar程序入口-->
  199. <mainClass>shop.alien.gateway.AlienGatewayApplication</mainClass>
  200. </manifest>
  201. </archive>
  202. </configuration>
  203. </plugin>
  204. <!--拷贝依赖到jar外面的lib目录-->
  205. <plugin>
  206. <groupId>org.apache.maven.plugins</groupId>
  207. <artifactId>maven-dependency-plugin</artifactId>
  208. <executions>
  209. <execution>
  210. <id>copy-dependencies</id>
  211. <phase>prepare-package</phase>
  212. <goals>
  213. <goal>copy-dependencies</goal>
  214. </goals>
  215. <configuration>
  216. <!-- 拷贝项目依赖包到lib/目录下 -->
  217. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  218. <overWriteReleases>false</overWriteReleases>
  219. <overWriteSnapshots>false</overWriteSnapshots>
  220. <overWriteIfNewer>true</overWriteIfNewer>
  221. </configuration>
  222. </execution>
  223. </executions>
  224. </plugin>
  225. </plugins>
  226. </build>
  227. </project>