pom.xml 6.9 KB

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