pom.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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. </dependency>
  148. <dependency>
  149. <groupId>com.alibaba.cloud</groupId>
  150. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  151. </dependency>
  152. <dependency>
  153. <groupId>com.alibaba.cloud</groupId>
  154. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  155. </dependency>
  156. <dependency>
  157. <groupId>javax.xml.bind</groupId>
  158. <artifactId>jaxb-api</artifactId>
  159. </dependency>
  160. </dependencies>
  161. <build>
  162. <plugins>
  163. <plugin>
  164. <groupId>org.apache.maven.plugins</groupId>
  165. <artifactId>maven-dependency-plugin</artifactId>
  166. <version>3.1.2</version> <!-- 使用最新版本 -->
  167. <executions>
  168. <execution>
  169. <id>copy-dependencies</id>
  170. <phase>prepare-package</phase> <!-- 在package之前执行 -->
  171. <goals>
  172. <goal>copy-dependencies</goal>
  173. </goals>
  174. <configuration>
  175. <outputDirectory>${project.build.directory}/lib</outputDirectory> <!-- 指定输出目录 -->
  176. <includeScope>runtime</includeScope> <!-- 仅包含运行时依赖 -->
  177. </configuration>
  178. </execution>
  179. </executions>
  180. </plugin>
  181. <plugin>
  182. <groupId>org.springframework.boot</groupId>
  183. <artifactId>spring-boot-maven-plugin</artifactId>
  184. <configuration>
  185. <mainClass>shop.alien.gateway.AlienGatewayApplication</mainClass>
  186. <layout>ZIP</layout>
  187. <includes>
  188. <include>
  189. <groupId>nothing</groupId>
  190. <artifactId>nothing</artifactId>
  191. </include>
  192. </includes>
  193. </configuration>
  194. <executions>
  195. <execution>
  196. <goals>
  197. <goal>repackage</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. <plugin>
  203. <groupId>org.apache.maven.plugins</groupId>
  204. <artifactId>maven-compiler-plugin</artifactId>
  205. <configuration>
  206. <source>8</source>
  207. <target>8</target>
  208. </configuration>
  209. </plugin>
  210. </plugins>
  211. </build>
  212. <profiles>
  213. <profile>
  214. <id>test</id>
  215. <properties>
  216. <profiles.active>test</profiles.active>
  217. <nacos.server-addr>192.168.2.252:8848</nacos.server-addr>
  218. <nacos.namespace>0e1e2d77-56e8-422c-8317-6f71d7285e59</nacos.namespace>
  219. <nacos.username>nacos</nacos.username>
  220. <nacos.password>ngfriend198092</nacos.password>
  221. </properties>
  222. <activation>
  223. <activeByDefault>true</activeByDefault>
  224. </activation>
  225. </profile>
  226. </profiles>
  227. </project>