pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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>cn.hfln.framework</groupId>
  7. <artifactId>hfln-framework-parent</artifactId>
  8. <version>1.0.0-SNAPSHOT</version>
  9. <relativePath/>
  10. </parent>
  11. <groupId>cn.hfln.framework</groupId>
  12. <artifactId>hfln-interior-gateway</artifactId>
  13. <version>1.0.0-SNAPSHOT</version>
  14. <name>hfln-interior-gateway</name>
  15. <description>hfln-interior-gateway</description>
  16. <properties>
  17. <java.version>1.8</java.version> <!-- Update Java version -->
  18. <spring-boot.version>2.5.14</spring-boot.version> <!-- Update Spring Boot version -->
  19. <spring-cloud.version>2020.0.6</spring-cloud.version> <!-- Update Spring Cloud version -->
  20. <nimbus-jose-jwt.version>9.1</nimbus-jose-jwt.version> <!-- Update Nimbus JWT version -->
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>cn.hfln.framework</groupId>
  25. <artifactId>hfln-framework-dto</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>cn.hfln.framework</groupId>
  29. <artifactId>hfln-framework-common</artifactId>
  30. <exclusions>
  31. <exclusion>
  32. <groupId>org.springframework</groupId>
  33. <artifactId>spring-webmvc</artifactId>
  34. </exclusion>
  35. </exclusions>
  36. </dependency>
  37. <dependency>
  38. <groupId>ch.qos.logback</groupId>
  39. <artifactId>logback-classic</artifactId>
  40. <scope>runtime</scope>
  41. </dependency>
  42. <dependency>
  43. <groupId>ch.qos.logback</groupId>
  44. <artifactId>logback-core</artifactId>
  45. <scope>runtime</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.projectlombok</groupId>
  49. <artifactId>lombok</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.alibaba.fastjson2</groupId>
  53. <artifactId>fastjson2</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>cn.hutool</groupId>
  57. <artifactId>hutool-all</artifactId>
  58. </dependency>
  59. <!-- 注册中心配置中心相关 -->
  60. <dependency>
  61. <groupId>com.alibaba.cloud</groupId>
  62. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.alibaba.cloud</groupId>
  66. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.cloud</groupId>
  70. <artifactId>spring-cloud-starter-gateway</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.security</groupId>
  74. <artifactId>spring-security-config</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework.security</groupId>
  78. <artifactId>spring-security-oauth2-resource-server</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.springframework.security</groupId>
  82. <artifactId>spring-security-oauth2-client</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springframework.security</groupId>
  86. <artifactId>spring-security-oauth2-jose</artifactId>
  87. </dependency>
  88. <!-- 接口文档 -->
  89. <dependency>
  90. <groupId>com.github.xiaoymin</groupId>
  91. <artifactId>knife4j-micro-spring-boot-starter</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.github.xiaoymin</groupId>
  95. <artifactId>knife4j-spring-boot-starter</artifactId>
  96. </dependency>
  97. <!-- JWT(Json Web Token)登录支持 -->
  98. <dependency>
  99. <groupId>io.jsonwebtoken</groupId>
  100. <artifactId>jjwt</artifactId>
  101. <version>0.9.0</version>
  102. </dependency>
  103. <!-- Nimbus JWT支持 -->
  104. <dependency>
  105. <groupId>com.nimbusds</groupId>
  106. <artifactId>nimbus-jose-jwt</artifactId>
  107. <version>${nimbus-jose-jwt.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.codehaus.janino</groupId>
  111. <artifactId>janino</artifactId>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-starter-actuator</artifactId>
  116. </dependency>
  117. </dependencies>
  118. <build>
  119. <finalName>gateway-service</finalName>
  120. <plugins>
  121. <plugin>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-maven-plugin</artifactId>
  124. <version>${spring-boot.version}</version>
  125. <executions>
  126. <execution>
  127. <goals>
  128. <goal>repackage</goal>
  129. </goals>
  130. </execution>
  131. </executions>
  132. <configuration>
  133. <classifier>boot</classifier>
  134. <mainClass>cn.hfln.framework.gateway.GatewayApplication</mainClass>
  135. </configuration>
  136. </plugin>
  137. </plugins>
  138. </build>
  139. </project>