pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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>com.alibaba.cloud</groupId>
  58. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>commons-lang</groupId>
  62. <artifactId>commons-lang</artifactId>
  63. <version>2.5</version>
  64. </dependency>
  65. <!--<dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-actuator</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.cloud</groupId>
  71. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  72. <version>2.2.10.RELEASE</version>
  73. </dependency>-->
  74. </dependencies>
  75. <profiles>
  76. <profile>
  77. <id>dev</id>
  78. <properties>
  79. <profile.active>dev</profile.active>
  80. </properties>
  81. <activation>
  82. <activeByDefault>true</activeByDefault>
  83. </activation>
  84. </profile>
  85. <profile>
  86. <id>test</id>
  87. <properties>
  88. <profile.active>test</profile.active>
  89. </properties>
  90. </profile>
  91. </profiles>
  92. <build>
  93. <finalName>tnb-gateway</finalName>
  94. <resources>
  95. <resource>
  96. <directory>src/main/resources</directory>
  97. <filtering>true</filtering>
  98. <includes>
  99. <include>application.yml</include>
  100. <!--<include>application-${profile.active}.yml</include>-->
  101. <include>*.xml</include>
  102. </includes>
  103. </resource>
  104. </resources>
  105. <plugins>
  106. <plugin>
  107. <groupId>org.apache.maven.plugins</groupId>
  108. <artifactId>maven-compiler-plugin</artifactId>
  109. <version>3.13.0</version>
  110. <configuration>
  111. <compilerArgs>
  112. <arg>-parameters</arg>
  113. </compilerArgs>
  114. </configuration>
  115. </plugin>
  116. <plugin>
  117. <groupId>org.springframework.boot</groupId>
  118. <artifactId>spring-boot-maven-plugin</artifactId>
  119. <version>${springboot.version}</version>
  120. <executions>
  121. <execution>
  122. <goals>
  123. <goal>repackage</goal>
  124. </goals>
  125. </execution>
  126. </executions>
  127. </plugin>
  128. </plugins>
  129. </build>
  130. </project>