pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>tnb</artifactId>
  7. <groupId>cn.reghao.tnb</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>gateway</artifactId>
  12. <properties>
  13. <maven.compiler.source>21</maven.compiler.source>
  14. <maven.compiler.target>21</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>cn.reghao.tnb</groupId>
  19. <artifactId>common-auth</artifactId>
  20. <version>1.0.0-SNAPSHOT</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-webflux</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.cloud</groupId>
  28. <artifactId>spring-cloud-starter-gateway</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-data-redis</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-amqp</artifactId>
  37. <version>2.0.3.RELEASE</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>com.google.guava</groupId>
  41. <artifactId>guava</artifactId>
  42. <version>33.0.0-jre</version>
  43. </dependency>
  44. <!--<dependency>
  45. <groupId>org.springframework.cloud</groupId>
  46. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  47. </dependency>-->
  48. <dependency>
  49. <groupId>org.springframework.cloud</groupId>
  50. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.alibaba.cloud</groupId>
  54. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>commons-lang</groupId>
  58. <artifactId>commons-lang</artifactId>
  59. <version>2.5</version>
  60. </dependency>
  61. <!--<dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-actuator</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework.cloud</groupId>
  67. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  68. <version>2.2.10.RELEASE</version>
  69. </dependency>-->
  70. </dependencies>
  71. <profiles>
  72. <profile>
  73. <id>dev</id>
  74. <properties>
  75. <profile.active>dev</profile.active>
  76. </properties>
  77. <activation>
  78. <activeByDefault>true</activeByDefault>
  79. </activation>
  80. </profile>
  81. <profile>
  82. <id>test</id>
  83. <properties>
  84. <profile.active>test</profile.active>
  85. </properties>
  86. </profile>
  87. </profiles>
  88. <build>
  89. <finalName>tnb-gateway</finalName>
  90. <resources>
  91. <resource>
  92. <directory>src/main/resources</directory>
  93. <filtering>true</filtering>
  94. <includes>
  95. <!--<include>bootstrap.properties</include>
  96. <include>application.properties</include>-->
  97. <include>application.yml</include>
  98. <include>application-${profile.active}.yml</include>
  99. <include>*.xml</include>
  100. </includes>
  101. </resource>
  102. </resources>
  103. <plugins>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-compiler-plugin</artifactId>
  107. <version>3.13.0</version>
  108. <configuration>
  109. <compilerArgs>
  110. <arg>-parameters</arg>
  111. </compilerArgs>
  112. </configuration>
  113. </plugin>
  114. <plugin>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-maven-plugin</artifactId>
  117. <version>${springboot.version}</version>
  118. <executions>
  119. <execution>
  120. <goals>
  121. <goal>repackage</goal>
  122. </goals>
  123. </execution>
  124. </executions>
  125. </plugin>
  126. </plugins>
  127. </build>
  128. </project>