pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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-data-r2dbc</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>mysql</groupId>
  37. <artifactId>mysql-connector-java</artifactId>
  38. <scope>runtime</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>dev.miku</groupId>
  42. <artifactId>r2dbc-mysql</artifactId>
  43. <version>0.8.2.RELEASE</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-amqp</artifactId>
  48. <version>2.0.3.RELEASE</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>io.projectreactor</groupId>
  56. <artifactId>reactor-core</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>io.projectreactor</groupId>
  60. <artifactId>reactor-tools</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>io.projectreactor</groupId>
  64. <artifactId>reactor-test</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework.cloud</groupId>
  69. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-security</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-starter-oauth2-resource-server</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. </profiles>
  97. <build>
  98. <finalName>tnb-data</finalName>
  99. <extensions>
  100. <extension>
  101. <groupId>kr.motd.maven</groupId>
  102. <artifactId>os-maven-plugin</artifactId>
  103. <version>1.5.0.Final</version>
  104. </extension>
  105. </extensions>
  106. <resources>
  107. <resource>
  108. <directory>src/main/resources</directory>
  109. <filtering>true</filtering>
  110. <includes>
  111. <include>application.yml</include>
  112. <include>application-${profile.active}.yml</include>
  113. <include>mapper/**</include>
  114. <include>*.xml</include>
  115. </includes>
  116. </resource>
  117. </resources>
  118. <plugins>
  119. <plugin>
  120. <groupId>org.springframework.boot</groupId>
  121. <artifactId>spring-boot-maven-plugin</artifactId>
  122. <version>${springboot.version}</version>
  123. <executions>
  124. <execution>
  125. <goals>
  126. <goal>repackage</goal>
  127. </goals>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. </plugins>
  132. </build>
  133. </project>