pom.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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>admin</artifactId>
  12. <properties>
  13. <maven.compiler.source>17</maven.compiler.source>
  14. <maven.compiler.target>17</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>cn.reghao.tnb</groupId>
  19. <artifactId>common</artifactId>
  20. <version>1.0.0-SNAPSHOT</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>cn.reghao.tnb.search</groupId>
  24. <artifactId>search-api</artifactId>
  25. <version>1.0.0-SNAPSHOT</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>cn.reghao.tnb.content</groupId>
  29. <artifactId>content-api</artifactId>
  30. <version>1.0.0-SNAPSHOT</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>cn.reghao.tnb.user</groupId>
  34. <artifactId>user-api</artifactId>
  35. <version>1.0.0-SNAPSHOT</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>cn.reghao.tnb.file</groupId>
  39. <artifactId>file-api</artifactId>
  40. <version>1.0.0-SNAPSHOT</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-test</artifactId>
  45. <scope>test</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.mysql</groupId>
  49. <artifactId>mysql-connector-j</artifactId>
  50. <version>8.0.31</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.zaxxer</groupId>
  54. <artifactId>HikariCP</artifactId>
  55. <version>3.3.1</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.mybatis.spring.boot</groupId>
  59. <artifactId>mybatis-spring-boot-starter</artifactId>
  60. <version>3.0.4</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-data-redis</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.commons</groupId>
  68. <artifactId>commons-pool2</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.rabbitmq</groupId>
  72. <artifactId>amqp-client</artifactId>
  73. <version>5.19.0</version>
  74. </dependency>
  75. <!--<dependency>
  76. <groupId>org.mongodb</groupId>
  77. <artifactId>mongodb-driver-sync</artifactId>
  78. <version>4.11.1</version>
  79. </dependency>-->
  80. <dependency>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-starter-data-mongodb</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.apache.kafka</groupId>
  86. <artifactId>kafka-clients</artifactId>
  87. <version>3.9.1</version> <!-- Use the latest compatible version -->
  88. </dependency>
  89. <!-- elasticsearch -->
  90. <dependency>
  91. <groupId>co.elastic.clients</groupId>
  92. <artifactId>elasticsearch-java</artifactId>
  93. <version>7.17.18</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.elasticsearch.client</groupId>
  97. <artifactId>elasticsearch-rest-client</artifactId>
  98. <version>7.17.18</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>com.fasterxml.jackson.core</groupId>
  102. <artifactId>jackson-databind</artifactId>
  103. <version>2.17.0</version>
  104. <exclusions>
  105. <exclusion>
  106. <groupId>com.fasterxml.jackson.core</groupId>
  107. <artifactId>jackson-core</artifactId>
  108. </exclusion>
  109. </exclusions>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.fasterxml.jackson.core</groupId>
  113. <artifactId>jackson-core</artifactId>
  114. <version>2.17.0</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.fasterxml.jackson.core</groupId>
  118. <artifactId>jackson-annotations</artifactId>
  119. <version>2.17.0</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>jakarta.json</groupId>
  123. <artifactId>jakarta.json-api</artifactId>
  124. <version>2.0.1</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.alibaba.cloud</groupId>
  128. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  129. <version>2023.0.1.0</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.alibaba.nacos</groupId>
  133. <artifactId>nacos-client</artifactId>
  134. <version>2.4.1</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.springdoc</groupId>
  138. <artifactId>springdoc-openapi-ui</artifactId>
  139. <version>1.7.0</version>
  140. </dependency>
  141. </dependencies>
  142. <profiles>
  143. <profile>
  144. <id>dev</id>
  145. <properties>
  146. <profile.active>dev</profile.active>
  147. </properties>
  148. <activation>
  149. <activeByDefault>true</activeByDefault>
  150. </activation>
  151. </profile>
  152. <profile>
  153. <id>test</id>
  154. <properties>
  155. <profile.active>test</profile.active>
  156. </properties>
  157. </profile>
  158. <profile>
  159. <id>cluster</id>
  160. <properties>
  161. <profile.active>cluster</profile.active>
  162. </properties>
  163. </profile>
  164. </profiles>
  165. <build>
  166. <finalName>tnb-admin</finalName>
  167. <resources>
  168. <resource>
  169. <directory>src/main/resources</directory>
  170. <filtering>true</filtering>
  171. <includes>
  172. <include>application.yml</include>
  173. <include>application-${profile.active}.yml</include>
  174. <include>mapper/**</include>
  175. <include>*.xml</include>
  176. </includes>
  177. </resource>
  178. </resources>
  179. <plugins>
  180. <plugin>
  181. <groupId>org.apache.maven.plugins</groupId>
  182. <artifactId>maven-compiler-plugin</artifactId>
  183. <version>3.11.0</version>
  184. <configuration>
  185. <compilerArgs>
  186. <arg>-parameters</arg>
  187. </compilerArgs>
  188. </configuration>
  189. </plugin>
  190. <plugin>
  191. <groupId>org.springframework.boot</groupId>
  192. <artifactId>spring-boot-maven-plugin</artifactId>
  193. <version>${springboot.version}</version>
  194. <executions>
  195. <execution>
  196. <goals>
  197. <goal>repackage</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. </plugins>
  203. </build>
  204. </project>