pom.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. <!--core 工具类-->
  66. <dependency>
  67. <groupId>com.kxs</groupId>
  68. <artifactId>kxs-common-core</artifactId>
  69. </dependency>
  70. <!--安全模块-->
  71. <dependency>
  72. <groupId>com.kxs</groupId>
  73. <artifactId>kxs-common-security</artifactId>
  74. </dependency>
  75. <!-- orm 模块-->
  76. <dependency>
  77. <groupId>com.baomidou</groupId>
  78. <artifactId>mybatis-plus-boot-starter</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>com.mysql</groupId>
  82. <artifactId>mysql-connector-j</artifactId>
  83. </dependency>
  84. <!--多数据源-->
  85. <dependency>
  86. <groupId>com.baomidou</groupId>
  87. <artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
  88. </dependency>
  89. </dependencies>
  90. <build>
  91. <plugins>
  92. <!--该插件的作用是打包spring-boot的jar包-->
  93. <plugin>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-maven-plugin</artifactId>
  96. <configuration>
  97. <!--不排除的话,systemScope的依赖包会自动被此插件打包进xxx.jar\BOOT-INF\lib,和外部依赖产生冲突 -->
  98. <includeSystemScope>false</includeSystemScope>
  99. <skip>false</skip>
  100. <!--分离Jar包-->
  101. <layout>ZIP</layout>
  102. <includes>
  103. <include>
  104. <groupId>nothing</groupId>
  105. <artifactId>nothing</artifactId>
  106. </include>
  107. </includes>
  108. </configuration>
  109. <executions>
  110. <execution>
  111. <goals>
  112. <goal>repackage</goal>
  113. </goals>
  114. </execution>
  115. </executions>
  116. </plugin>
  117. <!-- 该插件的作用是复制依赖的jar包到指定的文件夹里 -->
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-dependency-plugin</artifactId>
  121. <executions>
  122. <execution>
  123. <id>copy-dependencies</id>
  124. <phase>package</phase>
  125. <goals>
  126. <goal>copy-dependencies</goal>
  127. </goals>
  128. <configuration>
  129. <outputDirectory>${project.build.directory}/lib/</outputDirectory>
  130. </configuration>
  131. </execution>
  132. </executions>
  133. </plugin>
  134. <!-- 该插件的作用是复制指定的文件 -->
  135. <plugin>
  136. <groupId>org.apache.maven.plugins</groupId>
  137. <artifactId>maven-resources-plugin</artifactId>
  138. <executions>
  139. <!-- 复制配置文件 -->
  140. <execution>
  141. <id>copy-resources</id>
  142. <phase>package</phase>
  143. <goals>
  144. <goal>copy-resources</goal>
  145. </goals>
  146. <configuration>
  147. <resources>
  148. <!--复制资源文件到外部,注意这里先不做filtering处理,防止某些静态文件损坏-->
  149. <resource>
  150. <filtering>false</filtering>
  151. <directory>src/main/resources</directory>
  152. <includes>
  153. <include>**/*</include>
  154. </includes>
  155. </resource>
  156. <!--仅针对配置文件filtering处理(占位符@@等)-->
  157. <resource>
  158. <directory>src/main/resources</directory>
  159. <filtering>true</filtering>
  160. <includes>
  161. <include>*.xml</include>
  162. <include>*.yml</include>
  163. <include>*.properties</include>
  164. </includes>
  165. </resource>
  166. </resources>
  167. <outputDirectory>${project.build.directory}/config</outputDirectory>
  168. </configuration>
  169. </execution>
  170. </executions>
  171. </plugin>
  172. </plugins>
  173. </build>
  174. </project>