pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project>
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.kxs</groupId>
  6. <artifactId>kxs-user</artifactId>
  7. <version>1.1.0</version>
  8. </parent>
  9. <artifactId>kxs-user-biz</artifactId>
  10. <packaging>jar</packaging>
  11. <dependencies>
  12. <!--注册中心客户端-->
  13. <dependency>
  14. <groupId>com.alibaba.cloud</groupId>
  15. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  16. </dependency>
  17. <!--配置中心客户端-->
  18. <dependency>
  19. <groupId>com.alibaba.cloud</groupId>
  20. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  21. </dependency>
  22. <!--undertow容器-->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-undertow</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.kxs</groupId>
  29. <artifactId>kxs-system-api</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.kxs</groupId>
  33. <artifactId>kxs-user-api</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.kxs</groupId>
  37. <artifactId>kxs-store-api</artifactId>
  38. </dependency>
  39. <!--core 工具类-->
  40. <dependency>
  41. <groupId>com.kxs</groupId>
  42. <artifactId>kxs-common-core</artifactId>
  43. </dependency>
  44. <!--日志处理-->
  45. <dependency>
  46. <groupId>com.kxs</groupId>
  47. <artifactId>kxs-common-log</artifactId>
  48. </dependency>
  49. <!--安全模块-->
  50. <dependency>
  51. <groupId>com.kxs</groupId>
  52. <artifactId>kxs-common-security</artifactId>
  53. </dependency>
  54. <!-- orm 模块-->
  55. <dependency>
  56. <groupId>com.baomidou</groupId>
  57. <artifactId>mybatis-plus-boot-starter</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.mysql</groupId>
  61. <artifactId>mysql-connector-j</artifactId>
  62. </dependency>
  63. <!--多数据源-->
  64. <dependency>
  65. <groupId>com.baomidou</groupId>
  66. <artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
  67. </dependency>
  68. <!--接口文档-->
  69. <dependency>
  70. <groupId>com.kxs</groupId>
  71. <artifactId>kxs-common-swagger</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>cn.hutool</groupId>
  75. <artifactId>hutool-crypto</artifactId>
  76. </dependency>
  77. </dependencies>
  78. <build>
  79. <plugins>
  80. <!--该插件的作用是打包spring-boot的jar包-->
  81. <plugin>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-maven-plugin</artifactId>
  84. <configuration>
  85. <!--不排除的话,systemScope的依赖包会自动被此插件打包进xxx.jar\BOOT-INF\lib,和外部依赖产生冲突 -->
  86. <includeSystemScope>false</includeSystemScope>
  87. <skip>false</skip>
  88. <!--分离Jar包-->
  89. <layout>ZIP</layout>
  90. <includes>
  91. <include>
  92. <groupId>nothing</groupId>
  93. <artifactId>nothing</artifactId>
  94. </include>
  95. </includes>
  96. </configuration>
  97. <executions>
  98. <execution>
  99. <goals>
  100. <goal>repackage</goal>
  101. </goals>
  102. </execution>
  103. </executions>
  104. </plugin>
  105. <!-- 该插件的作用是复制依赖的jar包到指定的文件夹里 -->
  106. <plugin>
  107. <groupId>org.apache.maven.plugins</groupId>
  108. <artifactId>maven-dependency-plugin</artifactId>
  109. <executions>
  110. <execution>
  111. <id>copy-dependencies</id>
  112. <phase>package</phase>
  113. <goals>
  114. <goal>copy-dependencies</goal>
  115. </goals>
  116. <configuration>
  117. <outputDirectory>${project.build.directory}/lib/</outputDirectory>
  118. </configuration>
  119. </execution>
  120. </executions>
  121. </plugin>
  122. <!-- 该插件的作用是复制指定的文件 -->
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-resources-plugin</artifactId>
  126. <executions>
  127. <!-- 复制配置文件 -->
  128. <execution>
  129. <id>copy-resources</id>
  130. <phase>package</phase>
  131. <goals>
  132. <goal>copy-resources</goal>
  133. </goals>
  134. <configuration>
  135. <resources>
  136. <!--复制资源文件到外部,注意这里先不做filtering处理,防止某些静态文件损坏-->
  137. <resource>
  138. <filtering>false</filtering>
  139. <directory>src/main/resources</directory>
  140. <includes>
  141. <include>**/*</include>
  142. </includes>
  143. </resource>
  144. <!--仅针对配置文件filtering处理(占位符@@等)-->
  145. <resource>
  146. <directory>src/main/resources</directory>
  147. <filtering>true</filtering>
  148. <includes>
  149. <include>*.xml</include>
  150. <include>*.yml</include>
  151. <include>*.properties</include>
  152. </includes>
  153. </resource>
  154. </resources>
  155. <outputDirectory>${project.build.directory}/config</outputDirectory>
  156. </configuration>
  157. </execution>
  158. </executions>
  159. </plugin>
  160. </plugins>
  161. </build>
  162. </project>