pom.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. <parent>
  6. <artifactId>sckw-common</artifactId>
  7. <groupId>com.sckw</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>sckw-common-seata</artifactId>
  12. <description>分布式事务</description>
  13. <properties>
  14. <maven.compiler.source>17</maven.compiler.source>
  15. <maven.compiler.target>17</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. <!-- 注意一定要引入对版本,要引入spring-cloud版本seata,而不是springboot版本的seata-->
  19. <!-- 1.如果你引入的是seata-all,请不要使用@EnableAutoDataSourceProxy注解。-->
  20. <!-- 2.如果你引入的是seata-spring-boot-starter 请关闭自动代理。-->
  21. <!-- seata:enable-auto-data-source-proxy: false-->
  22. <dependency>
  23. <groupId>com.alibaba.cloud</groupId>
  24. <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
  25. <!-- 排除掉springcloud默认的seata版本,以免版本不一致出现问题-->
  26. <exclusions>
  27. <exclusion>
  28. <groupId>io.seata</groupId>
  29. <artifactId>seata-spring-boot-starter</artifactId>
  30. </exclusion>
  31. <exclusion>
  32. <groupId>io.seata</groupId>
  33. <artifactId>seata-all</artifactId>
  34. </exclusion>
  35. </exclusions>
  36. </dependency>
  37. <!-- 上面排除掉了springcloud默认seata版本,此处引入和seata-server版本对应的seata包-->
  38. <dependency>
  39. <groupId>io.seata</groupId>
  40. <artifactId>seata-spring-boot-starter</artifactId>
  41. </dependency>
  42. </dependencies>
  43. </project>