pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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>11</maven.compiler.source>
  14. <maven.compiler.target>11</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>cn.reghao.tnb</groupId>
  19. <artifactId>log</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.cloud</groupId>
  36. <artifactId>spring-cloud-starter-zookeeper-discovery</artifactId>
  37. <exclusions>
  38. <exclusion>
  39. <groupId>org.apache.zookeeper</groupId>
  40. <artifactId>zookeeper</artifactId>
  41. </exclusion>
  42. </exclusions>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.zookeeper</groupId>
  46. <artifactId>zookeeper</artifactId>
  47. <version>3.4.8</version>
  48. <exclusions>
  49. <exclusion>
  50. <groupId>org.slf4j</groupId>
  51. <artifactId>slf4j-log4j12</artifactId>
  52. </exclusion>
  53. </exclusions>
  54. </dependency>
  55. <dependency>
  56. <groupId>javax.xml.bind</groupId>
  57. <artifactId>jaxb-api</artifactId>
  58. <version>2.3.0</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.sun.xml.bind</groupId>
  62. <artifactId>jaxb-impl</artifactId>
  63. <version>2.3.0</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.sun.xml.bind</groupId>
  67. <artifactId>jaxb-core</artifactId>
  68. <version>2.3.0</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>javax.activation</groupId>
  72. <artifactId>activation</artifactId>
  73. <version>1.1.1</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
  78. </dependency>
  79. </dependencies>
  80. <profiles>
  81. <profile>
  82. <id>dev</id>
  83. <properties>
  84. <profile.active>dev</profile.active>
  85. </properties>
  86. <activation>
  87. <activeByDefault>true</activeByDefault>
  88. </activation>
  89. </profile>
  90. <profile>
  91. <id>test</id>
  92. <properties>
  93. <profile.active>test</profile.active>
  94. </properties>
  95. </profile>
  96. <profile>
  97. <id>prod</id>
  98. <properties>
  99. <profile.active>prod</profile.active>
  100. </properties>
  101. </profile>
  102. <profile>
  103. <id>cluster</id>
  104. <properties>
  105. <profile.active>cluster</profile.active>
  106. </properties>
  107. </profile>
  108. </profiles>
  109. <build>
  110. <finalName>tnb-gateway</finalName>
  111. <resources>
  112. <resource>
  113. <directory>src/main/resources</directory>
  114. <filtering>true</filtering>
  115. <includes>
  116. <!--<include>bootstrap.properties</include>
  117. <include>application.properties</include>-->
  118. <include>application.yml</include>
  119. <include>application-${profile.active}.yml</include>
  120. <include>*.xml</include>
  121. </includes>
  122. </resource>
  123. </resources>
  124. <plugins>
  125. <plugin>
  126. <groupId>org.springframework.boot</groupId>
  127. <artifactId>spring-boot-maven-plugin</artifactId>
  128. <configuration>
  129. <executable>true</executable>
  130. <fork>true</fork>
  131. </configuration>
  132. </plugin>
  133. </plugins>
  134. </build>
  135. </project>