pom.xml 7.1 KB

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