pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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>account</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.account</groupId>
  12. <artifactId>account-service</artifactId>
  13. <properties>
  14. <java.version>11</java.version>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>cn.reghao.tnb</groupId>
  19. <artifactId>auth</artifactId>
  20. <version>1.0.0-SNAPSHOT</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>cn.reghao.tnb</groupId>
  24. <artifactId>common</artifactId>
  25. <version>1.0.0-SNAPSHOT</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>cn.reghao.tnb.account</groupId>
  29. <artifactId>account-api</artifactId>
  30. <version>1.0.0-SNAPSHOT</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>cn.reghao.tnb.message</groupId>
  34. <artifactId>message-api</artifactId>
  35. <version>1.0.0-SNAPSHOT</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-web</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-security</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.security</groupId>
  47. <artifactId>spring-security-jwt</artifactId>
  48. <version>1.1.1.RELEASE</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.security.oauth</groupId>
  52. <artifactId>spring-security-oauth2</artifactId>
  53. <version>2.5.0.RELEASE</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-data-redis</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.session</groupId>
  61. <artifactId>spring-session-data-redis</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-cache</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.mysql</groupId>
  69. <artifactId>mysql-connector-j</artifactId>
  70. <version>8.0.31</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.zaxxer</groupId>
  74. <artifactId>HikariCP</artifactId>
  75. <version>3.3.1</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.mybatis.spring.boot</groupId>
  79. <artifactId>mybatis-spring-boot-starter</artifactId>
  80. <version>3.0.4</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.springframework.cloud</groupId>
  84. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.springdoc</groupId>
  88. <artifactId>springdoc-openapi-ui</artifactId>
  89. <version>1.7.0</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-starter-freemarker</artifactId>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-starter-amqp</artifactId>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.springframework.amqp</groupId>
  101. <artifactId>spring-rabbit</artifactId>
  102. </dependency>
  103. </dependencies>
  104. <profiles>
  105. <profile>
  106. <id>dev</id>
  107. <properties>
  108. <profile.active>dev</profile.active>
  109. </properties>
  110. <activation>
  111. <activeByDefault>true</activeByDefault>
  112. </activation>
  113. </profile>
  114. <profile>
  115. <id>test</id>
  116. <properties>
  117. <profile.active>test</profile.active>
  118. </properties>
  119. </profile>
  120. <profile>
  121. <id>cluster</id>
  122. <properties>
  123. <profile.active>cluster</profile.active>
  124. </properties>
  125. </profile>
  126. </profiles>
  127. <build>
  128. <finalName>tnb-account</finalName>
  129. <extensions>
  130. <extension>
  131. <groupId>kr.motd.maven</groupId>
  132. <artifactId>os-maven-plugin</artifactId>
  133. <version>1.5.0.Final</version>
  134. </extension>
  135. </extensions>
  136. <resources>
  137. <resource>
  138. <directory>src/main/resources</directory>
  139. <filtering>true</filtering>
  140. <includes>
  141. <include>application.yml</include>
  142. <include>application-${profile.active}.yml</include>
  143. <include>mapper/**</include>
  144. <include>*.xml</include>
  145. <include>static/**</include>
  146. <include>templates/**</include>
  147. <include>menu*.json</include>
  148. </includes>
  149. </resource>
  150. </resources>
  151. <plugins>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-resources-plugin</artifactId>
  155. <version>2.4.3</version>
  156. <configuration>
  157. <!-- 让 maven 不处理字体 -->
  158. <nonFilteredFileExtensions>
  159. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  160. <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  161. <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  162. </nonFilteredFileExtensions>
  163. </configuration>
  164. </plugin>
  165. <plugin>
  166. <groupId>org.apache.maven.plugins</groupId>
  167. <artifactId>maven-compiler-plugin</artifactId>
  168. <version>3.11.0</version>
  169. <configuration>
  170. <compilerArgs>
  171. <arg>-parameters</arg>
  172. </compilerArgs>
  173. </configuration>
  174. </plugin>
  175. <plugin>
  176. <groupId>org.springframework.boot</groupId>
  177. <artifactId>spring-boot-maven-plugin</artifactId>
  178. <version>${springboot.version}</version>
  179. <executions>
  180. <execution>
  181. <goals>
  182. <goal>repackage</goal>
  183. </goals>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. </plugins>
  188. </build>
  189. </project>