pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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.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-web</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-data-redis</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-cache</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>mysql</groupId>
  57. <artifactId>mysql-connector-java</artifactId>
  58. <version>8.0.17</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.zaxxer</groupId>
  62. <artifactId>HikariCP</artifactId>
  63. <version>3.3.1</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.mybatis.spring.boot</groupId>
  67. <artifactId>mybatis-spring-boot-starter</artifactId>
  68. <version>2.1.1</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.springframework.cloud</groupId>
  72. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.cloud</groupId>
  76. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  77. <version>2.2.10.RELEASE</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.springframework.boot</groupId>
  81. <artifactId>spring-boot-starter-actuator</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.springdoc</groupId>
  85. <artifactId>springdoc-openapi-ui</artifactId>
  86. <version>1.7.0</version>
  87. </dependency>
  88. </dependencies>
  89. <profiles>
  90. <profile>
  91. <id>dev</id>
  92. <properties>
  93. <profile.active>dev</profile.active>
  94. </properties>
  95. <activation>
  96. <activeByDefault>true</activeByDefault>
  97. </activation>
  98. </profile>
  99. <profile>
  100. <id>test</id>
  101. <properties>
  102. <profile.active>test</profile.active>
  103. </properties>
  104. </profile>
  105. <profile>
  106. <id>cluster</id>
  107. <properties>
  108. <profile.active>cluster</profile.active>
  109. </properties>
  110. </profile>
  111. </profiles>
  112. <build>
  113. <finalName>tnb-user</finalName>
  114. <extensions>
  115. <extension>
  116. <groupId>kr.motd.maven</groupId>
  117. <artifactId>os-maven-plugin</artifactId>
  118. <version>1.5.0.Final</version>
  119. </extension>
  120. </extensions>
  121. <resources>
  122. <resource>
  123. <directory>src/main/resources</directory>
  124. <filtering>true</filtering>
  125. <includes>
  126. <include>application.yml</include>
  127. <include>application-${profile.active}.yml</include>
  128. <include>mapper/**</include>
  129. <include>*.xml</include>
  130. </includes>
  131. </resource>
  132. </resources>
  133. <plugins>
  134. <plugin>
  135. <groupId>org.springframework.boot</groupId>
  136. <artifactId>spring-boot-maven-plugin</artifactId>
  137. <version>${springboot.version}</version>
  138. <executions>
  139. <execution>
  140. <goals>
  141. <goal>repackage</goal>
  142. </goals>
  143. </execution>
  144. </executions>
  145. </plugin>
  146. </plugins>
  147. </build>
  148. </project>