pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. <dependency>
  94. <groupId>com.kxs</groupId>
  95. <artifactId>kxs-user-biz</artifactId>
  96. <version>1.1.0</version>
  97. <scope>compile</scope>
  98. </dependency>
  99. </dependencies>
  100. <build>
  101. <plugins>
  102. <!--该插件的作用是打包spring-boot的jar包-->
  103. <plugin>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-maven-plugin</artifactId>
  106. <configuration>
  107. <!--不排除的话,systemScope的依赖包会自动被此插件打包进xxx.jar\BOOT-INF\lib,和外部依赖产生冲突 -->
  108. <includeSystemScope>false</includeSystemScope>
  109. <skip>false</skip>
  110. <!--分离Jar包-->
  111. <layout>ZIP</layout>
  112. <includes>
  113. <include>
  114. <groupId>nothing</groupId>
  115. <artifactId>nothing</artifactId>
  116. </include>
  117. </includes>
  118. </configuration>
  119. <executions>
  120. <execution>
  121. <goals>
  122. <goal>repackage</goal>
  123. </goals>
  124. </execution>
  125. </executions>
  126. </plugin>
  127. <!-- 该插件的作用是复制依赖的jar包到指定的文件夹里 -->
  128. <plugin>
  129. <groupId>org.apache.maven.plugins</groupId>
  130. <artifactId>maven-dependency-plugin</artifactId>
  131. <executions>
  132. <execution>
  133. <id>copy-dependencies</id>
  134. <phase>package</phase>
  135. <goals>
  136. <goal>copy-dependencies</goal>
  137. </goals>
  138. <configuration>
  139. <outputDirectory>${project.build.directory}/lib/</outputDirectory>
  140. </configuration>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. <!-- 该插件的作用是复制指定的文件 -->
  145. <plugin>
  146. <groupId>org.apache.maven.plugins</groupId>
  147. <artifactId>maven-resources-plugin</artifactId>
  148. <executions>
  149. <!-- 复制配置文件 -->
  150. <execution>
  151. <id>copy-resources</id>
  152. <phase>package</phase>
  153. <goals>
  154. <goal>copy-resources</goal>
  155. </goals>
  156. <configuration>
  157. <resources>
  158. <!--复制资源文件到外部,注意这里先不做filtering处理,防止某些静态文件损坏-->
  159. <resource>
  160. <filtering>false</filtering>
  161. <directory>src/main/resources</directory>
  162. <includes>
  163. <include>**/*</include>
  164. </includes>
  165. </resource>
  166. <!--仅针对配置文件filtering处理(占位符@@等)-->
  167. <resource>
  168. <directory>src/main/resources</directory>
  169. <filtering>true</filtering>
  170. <includes>
  171. <include>*.xml</include>
  172. <include>*.yml</include>
  173. <include>*.properties</include>
  174. </includes>
  175. </resource>
  176. </resources>
  177. <outputDirectory>${project.build.directory}/config</outputDirectory>
  178. </configuration>
  179. </execution>
  180. </executions>
  181. </plugin>
  182. </plugins>
  183. </build>
  184. </project>