拓恒统一网关服务
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

208 行
6.9KB

  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>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.7.4</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.tuoheng.gateway</groupId>
  12. <artifactId>tuoheng_gateway</artifactId>
  13. <version>1.0.0</version>
  14. <name>tuoheng_gateway</name>
  15. <description>tuoheng_gateway</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.springframework.cloud</groupId>
  22. <artifactId>spring-cloud-starter-gateway</artifactId>
  23. <version>3.1.3</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.cloud</groupId>
  27. <artifactId>spring-cloud-starter-consul-discovery</artifactId>
  28. <version>3.1.1</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.auth0</groupId>
  32. <artifactId>java-jwt</artifactId>
  33. <version>3.10.0</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.alibaba</groupId>
  37. <artifactId>fastjson</artifactId>
  38. <version>1.2.76</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-actuator</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.cloud</groupId>
  46. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  47. <version>2.2.1.RELEASE</version>
  48. </dependency>
  49. <!-- 核心依赖,新版resource-->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-test</artifactId>
  57. <scope>test</scope>
  58. </dependency>
  59. <!-- Spring Security Oauth2 依赖 -->
  60. <dependency>
  61. <groupId>org.springframework.cloud</groupId>
  62. <artifactId>spring-cloud-starter-oauth2</artifactId>
  63. <!-- 此处需要加版本号 -->
  64. <version>2.2.5.RELEASE</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springframework.cloud</groupId>
  68. <artifactId>spring-cloud-starter-security</artifactId>
  69. <!-- 此处需要加版本号 -->
  70. <version>2.1.4.RELEASE</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.security</groupId>
  74. <artifactId>spring-security-test</artifactId>
  75. <scope>test</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.projectlombok</groupId>
  79. <artifactId>lombok</artifactId>
  80. <version>1.18.22</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.skywalking</groupId>
  84. <artifactId>apm-toolkit-logback-1.x</artifactId>
  85. <version>9.0.0</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.apache.skywalking</groupId>
  89. <artifactId>apm-toolkit-trace</artifactId>
  90. <version>9.0.0</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.skywalking</groupId>
  94. <artifactId>apm-toolkit-webflux</artifactId>
  95. <version>9.0.0</version>
  96. </dependency>
  97. </dependencies>
  98. <!-- 构建环境变量 -->
  99. <profiles>
  100. <!-- 本地开发环境 -->
  101. <profile>
  102. <id>local</id>
  103. <properties>
  104. <package.environment>local</package.environment>
  105. </properties>
  106. <activation>
  107. <activeByDefault>true</activeByDefault>
  108. </activation>
  109. </profile>
  110. <!-- 开发环境 -->
  111. <profile>
  112. <id>dev</id>
  113. <properties>
  114. <package.environment>dev</package.environment>
  115. </properties>
  116. </profile>
  117. <!-- 测试环境 -->
  118. <profile>
  119. <id>test</id>
  120. <properties>
  121. <package.environment>test</package.environment>
  122. </properties>
  123. </profile>
  124. <!-- 生产环境 -->
  125. <profile>
  126. <id>prod</id>
  127. <properties>
  128. <package.environment>prod</package.environment>
  129. </properties>
  130. </profile>
  131. </profiles>
  132. <!-- 构建环境配置 -->
  133. <build>
  134. <finalName>tuoheng_gateway</finalName>
  135. <resources>
  136. <resource>
  137. <directory>src/main/resources</directory>
  138. <filtering>true</filtering>
  139. </resource>
  140. <resource>
  141. <directory>src/main/java</directory>
  142. <includes>
  143. <include>**/*.*</include>
  144. </includes>
  145. <excludes>
  146. <exclude>**/*.java</exclude>
  147. </excludes>
  148. </resource>
  149. <resource>
  150. <directory>src/main/resources</directory>
  151. <filtering>true</filtering>
  152. <targetPath>WEB-INF/classes</targetPath>
  153. <includes>
  154. <include>application-${package.environment}.yml</include>
  155. </includes>
  156. </resource>
  157. </resources>
  158. <pluginManagement>
  159. <plugins>
  160. <plugin>
  161. <groupId>org.springframework.boot</groupId>
  162. <artifactId>spring-boot-maven-plugin</artifactId>
  163. <version>2.1.11.RELEASE</version>
  164. <configuration>
  165. <finalName>${project.build.finalName}</finalName>
  166. </configuration>
  167. <executions>
  168. <execution>
  169. <goals>
  170. <goal>repackage</goal>
  171. </goals>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. </plugins>
  176. </pluginManagement>
  177. <plugins>
  178. <plugin>
  179. <groupId>org.springframework.boot</groupId>
  180. <artifactId>spring-boot-maven-plugin</artifactId>
  181. <executions>
  182. <execution>
  183. <goals>
  184. <goal>repackage</goal>
  185. </goals>
  186. </execution>
  187. </executions>
  188. </plugin>
  189. </plugins>
  190. </build>
  191. </project>