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>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>cn.reghao.tnb</groupId>
  25. <artifactId>log</artifactId>
  26. <version>1.0.0-SNAPSHOT</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-webflux</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-test</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-amqp</artifactId>
  43. <version>2.0.3.RELEASE</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>io.projectreactor</groupId>
  51. <artifactId>reactor-core</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>io.projectreactor</groupId>
  55. <artifactId>reactor-tools</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>io.projectreactor</groupId>
  59. <artifactId>reactor-test</artifactId>
  60. <scope>test</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.cloud</groupId>
  64. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-starter-security</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
  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. <profile>
  92. <id>cluster</id>
  93. <properties>
  94. <profile.active>cluster</profile.active>
  95. </properties>
  96. </profile>
  97. </profiles>
  98. <build>
  99. <finalName>tnb-data</finalName>
  100. <extensions>
  101. <extension>
  102. <groupId>kr.motd.maven</groupId>
  103. <artifactId>os-maven-plugin</artifactId>
  104. <version>1.5.0.Final</version>
  105. </extension>
  106. </extensions>
  107. <resources>
  108. <resource>
  109. <directory>src/main/resources</directory>
  110. <filtering>true</filtering>
  111. <includes>
  112. <include>application.yml</include>
  113. <include>application-${profile.active}.yml</include>
  114. <include>mapper/**</include>
  115. <include>*.xml</include>
  116. </includes>
  117. </resource>
  118. </resources>
  119. <plugins>
  120. <plugin>
  121. <groupId>org.springframework.boot</groupId>
  122. <artifactId>spring-boot-maven-plugin</artifactId>
  123. <executions>
  124. <execution>
  125. <goals>
  126. <goal>repackage</goal>
  127. </goals>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. </plugins>
  132. </build>
  133. </project>