pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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>11</maven.compiler.source>
  15. <maven.compiler.target>11</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>cn.reghao.jutil</groupId>
  20. <artifactId>web</artifactId>
  21. <version>1.0.0-SNAPSHOT</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>cn.reghao.tnb.account</groupId>
  25. <artifactId>account-api</artifactId>
  26. <version>1.0.0-SNAPSHOT</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>cn.reghao.tnb.message</groupId>
  30. <artifactId>message-api</artifactId>
  31. <version>1.0.0-SNAPSHOT</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>cn.reghao.tnb</groupId>
  35. <artifactId>common</artifactId>
  36. <version>1.0.0-SNAPSHOT</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>cn.reghao.tnb.user</groupId>
  40. <artifactId>user-api</artifactId>
  41. <version>1.0.0-SNAPSHOT</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>cn.reghao.tnb.content</groupId>
  45. <artifactId>content-api</artifactId>
  46. <version>1.0.0-SNAPSHOT</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>cn.reghao.bnt</groupId>
  50. <artifactId>admin-api</artifactId>
  51. <version>1.0.0-SNAPSHOT</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-web</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-data-redis</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-cache</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>mysql</groupId>
  67. <artifactId>mysql-connector-java</artifactId>
  68. <version>8.0.17</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.zaxxer</groupId>
  72. <artifactId>HikariCP</artifactId>
  73. <version>3.3.1</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.mybatis.spring.boot</groupId>
  77. <artifactId>mybatis-spring-boot-starter</artifactId>
  78. <version>2.1.1</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.dubbo</groupId>
  82. <artifactId>dubbo-spring-boot-starter</artifactId>
  83. <version>2.7.8</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.springframework.cloud</groupId>
  87. <artifactId>spring-cloud-starter-zookeeper-discovery</artifactId>
  88. <exclusions>
  89. <exclusion>
  90. <groupId>org.apache.zookeeper</groupId>
  91. <artifactId>zookeeper</artifactId>
  92. </exclusion>
  93. </exclusions>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.apache.zookeeper</groupId>
  97. <artifactId>zookeeper</artifactId>
  98. <version>3.4.8</version>
  99. <exclusions>
  100. <exclusion>
  101. <groupId>org.slf4j</groupId>
  102. <artifactId>slf4j-log4j12</artifactId>
  103. </exclusion>
  104. </exclusions>
  105. </dependency>
  106. <dependency>
  107. <groupId>io.springfox</groupId>
  108. <artifactId>springfox-swagger2</artifactId>
  109. <version>2.9.2</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>io.springfox</groupId>
  113. <artifactId>springfox-swagger-ui</artifactId>
  114. <version>2.9.2</version>
  115. </dependency>
  116. </dependencies>
  117. <profiles>
  118. <profile>
  119. <id>dev</id>
  120. <properties>
  121. <profile.active>dev</profile.active>
  122. </properties>
  123. <activation>
  124. <activeByDefault>true</activeByDefault>
  125. </activation>
  126. </profile>
  127. <profile>
  128. <id>test</id>
  129. <properties>
  130. <profile.active>test</profile.active>
  131. </properties>
  132. </profile>
  133. <profile>
  134. <id>prod</id>
  135. <properties>
  136. <profile.active>prod</profile.active>
  137. </properties>
  138. </profile>
  139. <profile>
  140. <id>cluster</id>
  141. <properties>
  142. <profile.active>cluster</profile.active>
  143. </properties>
  144. </profile>
  145. </profiles>
  146. <build>
  147. <finalName>tnb-user</finalName>
  148. <extensions>
  149. <extension>
  150. <groupId>kr.motd.maven</groupId>
  151. <artifactId>os-maven-plugin</artifactId>
  152. <version>1.5.0.Final</version>
  153. </extension>
  154. </extensions>
  155. <resources>
  156. <resource>
  157. <directory>src/main/resources</directory>
  158. <filtering>true</filtering>
  159. <includes>
  160. <include>application.yml</include>
  161. <include>application-${profile.active}.yml</include>
  162. <include>mapper/**</include>
  163. <include>*.xml</include>
  164. </includes>
  165. </resource>
  166. </resources>
  167. <plugins>
  168. <plugin>
  169. <groupId>org.springframework.boot</groupId>
  170. <artifactId>spring-boot-maven-plugin</artifactId>
  171. <version>2.3.9.RELEASE</version>
  172. <configuration>
  173. <executable>true</executable>
  174. <fork>true</fork>
  175. </configuration>
  176. </plugin>
  177. </plugins>
  178. </build>
  179. </project>