pom.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. <!-- <dependency>-->
  79. <!-- <groupId>shop.alien</groupId>-->
  80. <!-- <artifactId>alien-util</artifactId>-->
  81. <!-- <version>1.0.0</version>-->
  82. <!-- </dependency>-->
  83. <dependency>
  84. <groupId>shop.alien</groupId>
  85. <artifactId>alien-entity</artifactId>
  86. <version>1.0.0</version>
  87. </dependency>
  88. <!-- <dependency>-->
  89. <!-- <groupId>shop.alien</groupId>-->
  90. <!-- <artifactId>alien-config</artifactId>-->
  91. <!-- <version>1.0.0</version>-->
  92. <!-- </dependency>-->
  93. <dependency>
  94. <groupId>com.alibaba.cloud</groupId>
  95. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.alibaba.cloud</groupId>
  99. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  100. </dependency>
  101. </dependencies>
  102. <build>
  103. <plugins>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-dependency-plugin</artifactId>
  107. <version>3.1.2</version> <!-- 使用最新版本 -->
  108. <executions>
  109. <execution>
  110. <id>copy-dependencies</id>
  111. <phase>prepare-package</phase> <!-- 在package之前执行 -->
  112. <goals>
  113. <goal>copy-dependencies</goal>
  114. </goals>
  115. <configuration>
  116. <outputDirectory>${project.build.directory}/lib</outputDirectory> <!-- 指定输出目录 -->
  117. <includeScope>runtime</includeScope> <!-- 仅包含运行时依赖 -->
  118. </configuration>
  119. </execution>
  120. </executions>
  121. </plugin>
  122. <plugin>
  123. <groupId>org.springframework.boot</groupId>
  124. <artifactId>spring-boot-maven-plugin</artifactId>
  125. <configuration>
  126. <mainClass>shop.alien.gateway.GatewayApplication</mainClass>
  127. <layout>ZIP</layout>
  128. <includes>
  129. <include>
  130. <groupId>nothing</groupId>
  131. <artifactId>nothing</artifactId>
  132. </include>
  133. </includes>
  134. </configuration>
  135. <executions>
  136. <execution>
  137. <goals>
  138. <goal>repackage</goal>
  139. </goals>
  140. </execution>
  141. </executions>
  142. </plugin>
  143. <plugin>
  144. <groupId>org.apache.maven.plugins</groupId>
  145. <artifactId>maven-compiler-plugin</artifactId>
  146. <configuration>
  147. <source>8</source>
  148. <target>8</target>
  149. </configuration>
  150. </plugin>
  151. </plugins>
  152. </build>
  153. </project>