pom.xml 7.3 KB

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