pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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>user</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.user</groupId>
  12. <artifactId>user-service</artifactId>
  13. <properties>
  14. <maven.compiler.source>21</maven.compiler.source>
  15. <maven.compiler.target>21</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>cn.reghao.tnb.account</groupId>
  20. <artifactId>account-api</artifactId>
  21. <version>1.0.0-SNAPSHOT</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>cn.reghao.tnb.message</groupId>
  25. <artifactId>message-api</artifactId>
  26. <version>1.0.0-SNAPSHOT</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>cn.reghao.tnb</groupId>
  30. <artifactId>common</artifactId>
  31. <version>1.0.0-SNAPSHOT</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>cn.reghao.tnb.user</groupId>
  35. <artifactId>user-api</artifactId>
  36. <version>1.0.0-SNAPSHOT</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>cn.reghao.tnb.content</groupId>
  40. <artifactId>content-api</artifactId>
  41. <version>1.0.0-SNAPSHOT</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-test</artifactId>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-data-redis</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-cache</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.mysql</groupId>
  58. <artifactId>mysql-connector-j</artifactId>
  59. <version>8.0.31</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.zaxxer</groupId>
  63. <artifactId>HikariCP</artifactId>
  64. <version>3.3.1</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.mybatis.spring.boot</groupId>
  68. <artifactId>mybatis-spring-boot-starter</artifactId>
  69. <version>3.0.4</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.alibaba.cloud</groupId>
  73. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.springframework.cloud</groupId>
  77. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  78. <version>2.2.10.RELEASE</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-starter-actuator</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springdoc</groupId>
  86. <artifactId>springdoc-openapi-ui</artifactId>
  87. <version>1.7.0</version>
  88. </dependency>
  89. </dependencies>
  90. <profiles>
  91. <profile>
  92. <id>dev</id>
  93. <properties>
  94. <profile.active>dev</profile.active>
  95. </properties>
  96. <activation>
  97. <activeByDefault>true</activeByDefault>
  98. </activation>
  99. </profile>
  100. <profile>
  101. <id>test</id>
  102. <properties>
  103. <profile.active>test</profile.active>
  104. </properties>
  105. </profile>
  106. <profile>
  107. <id>cluster</id>
  108. <properties>
  109. <profile.active>cluster</profile.active>
  110. </properties>
  111. </profile>
  112. </profiles>
  113. <build>
  114. <finalName>tnb-user</finalName>
  115. <extensions>
  116. <extension>
  117. <groupId>kr.motd.maven</groupId>
  118. <artifactId>os-maven-plugin</artifactId>
  119. <version>1.5.0.Final</version>
  120. </extension>
  121. </extensions>
  122. <resources>
  123. <resource>
  124. <directory>src/main/resources</directory>
  125. <filtering>true</filtering>
  126. <includes>
  127. <include>application.yml</include>
  128. <include>application-${profile.active}.yml</include>
  129. <include>mapper/**</include>
  130. <include>*.xml</include>
  131. </includes>
  132. </resource>
  133. </resources>
  134. <plugins>
  135. <plugin>
  136. <groupId>org.apache.maven.plugins</groupId>
  137. <artifactId>maven-compiler-plugin</artifactId>
  138. <version>3.13.0</version>
  139. <configuration>
  140. <compilerArgs>
  141. <arg>-parameters</arg>
  142. </compilerArgs>
  143. </configuration>
  144. </plugin>
  145. <plugin>
  146. <groupId>org.springframework.boot</groupId>
  147. <artifactId>spring-boot-maven-plugin</artifactId>
  148. <version>${springboot.version}</version>
  149. <executions>
  150. <execution>
  151. <goals>
  152. <goal>repackage</goal>
  153. </goals>
  154. </execution>
  155. </executions>
  156. </plugin>
  157. </plugins>
  158. </build>
  159. </project>