pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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-netflix-eureka-client</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>javax.xml.bind</groupId>
  40. <artifactId>jaxb-api</artifactId>
  41. <version>2.3.0</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.sun.xml.bind</groupId>
  45. <artifactId>jaxb-impl</artifactId>
  46. <version>2.3.0</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.sun.xml.bind</groupId>
  50. <artifactId>jaxb-core</artifactId>
  51. <version>2.3.0</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>javax.activation</groupId>
  55. <artifactId>activation</artifactId>
  56. <version>1.1.1</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>commons-lang</groupId>
  60. <artifactId>commons-lang</artifactId>
  61. <version>2.5</version>
  62. </dependency>
  63. </dependencies>
  64. <profiles>
  65. <profile>
  66. <id>dev</id>
  67. <properties>
  68. <profile.active>dev</profile.active>
  69. </properties>
  70. <activation>
  71. <activeByDefault>true</activeByDefault>
  72. </activation>
  73. </profile>
  74. <profile>
  75. <id>test</id>
  76. <properties>
  77. <profile.active>test</profile.active>
  78. </properties>
  79. </profile>
  80. <profile>
  81. <id>prod</id>
  82. <properties>
  83. <profile.active>prod</profile.active>
  84. </properties>
  85. </profile>
  86. <profile>
  87. <id>cluster</id>
  88. <properties>
  89. <profile.active>cluster</profile.active>
  90. </properties>
  91. </profile>
  92. </profiles>
  93. <build>
  94. <finalName>tnb-gateway</finalName>
  95. <resources>
  96. <resource>
  97. <directory>src/main/resources</directory>
  98. <filtering>true</filtering>
  99. <includes>
  100. <!--<include>bootstrap.properties</include>
  101. <include>application.properties</include>-->
  102. <include>application.yml</include>
  103. <include>application-${profile.active}.yml</include>
  104. <include>*.xml</include>
  105. </includes>
  106. </resource>
  107. </resources>
  108. <plugins>
  109. <plugin>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-maven-plugin</artifactId>
  112. <configuration>
  113. <executable>true</executable>
  114. <fork>true</fork>
  115. </configuration>
  116. </plugin>
  117. </plugins>
  118. </build>
  119. </project>