pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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>data</artifactId>
  7. <groupId>cn.reghao.tnb</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <groupId>cn.reghao.tnb.data</groupId>
  12. <artifactId>data-service</artifactId>
  13. <properties>
  14. <maven.compiler.source>11</maven.compiler.source>
  15. <maven.compiler.target>11</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>cn.reghao.tnb.content</groupId>
  20. <artifactId>content-api</artifactId>
  21. <version>1.0.0-SNAPSHOT</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-webflux</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-test</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-amqp</artifactId>
  38. <version>2.0.3.RELEASE</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>io.projectreactor</groupId>
  42. <artifactId>reactor-core</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>io.projectreactor</groupId>
  46. <artifactId>reactor-tools</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>io.projectreactor</groupId>
  50. <artifactId>reactor-test</artifactId>
  51. <scope>test</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.cloud</groupId>
  55. <artifactId>spring-cloud-starter-zookeeper-discovery</artifactId>
  56. <exclusions>
  57. <exclusion>
  58. <groupId>org.apache.zookeeper</groupId>
  59. <artifactId>zookeeper</artifactId>
  60. </exclusion>
  61. </exclusions>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.zookeeper</groupId>
  65. <artifactId>zookeeper</artifactId>
  66. <version>3.4.8</version>
  67. <exclusions>
  68. <exclusion>
  69. <groupId>org.slf4j</groupId>
  70. <artifactId>slf4j-log4j12</artifactId>
  71. </exclusion>
  72. </exclusions>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-starter-security</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
  81. </dependency>
  82. </dependencies>
  83. <profiles>
  84. <profile>
  85. <id>dev</id>
  86. <properties>
  87. <profile.active>dev</profile.active>
  88. </properties>
  89. <activation>
  90. <activeByDefault>true</activeByDefault>
  91. </activation>
  92. </profile>
  93. <profile>
  94. <id>test</id>
  95. <properties>
  96. <profile.active>test</profile.active>
  97. </properties>
  98. </profile>
  99. <profile>
  100. <id>prod</id>
  101. <properties>
  102. <profile.active>prod</profile.active>
  103. </properties>
  104. </profile>
  105. <profile>
  106. <id>cluster</id>
  107. <properties>
  108. <profile.active>cluster</profile.active>
  109. </properties>
  110. </profile>
  111. </profiles>
  112. <build>
  113. <finalName>tnb-data</finalName>
  114. <extensions>
  115. <extension>
  116. <groupId>kr.motd.maven</groupId>
  117. <artifactId>os-maven-plugin</artifactId>
  118. <version>1.5.0.Final</version>
  119. </extension>
  120. </extensions>
  121. <resources>
  122. <resource>
  123. <directory>src/main/resources</directory>
  124. <filtering>true</filtering>
  125. <includes>
  126. <include>application.yml</include>
  127. <include>application-${profile.active}.yml</include>
  128. <include>mapper/**</include>
  129. <include>*.xml</include>
  130. </includes>
  131. </resource>
  132. </resources>
  133. <plugins>
  134. <plugin>
  135. <groupId>org.springframework.boot</groupId>
  136. <artifactId>spring-boot-maven-plugin</artifactId>
  137. <version>2.3.9.RELEASE</version>
  138. <executions>
  139. <execution>
  140. <goals>
  141. <goal>repackage</goal>
  142. </goals>
  143. </execution>
  144. </executions>
  145. </plugin>
  146. </plugins>
  147. </build>
  148. </project>