瀏覽代碼

seata单独依赖模块

RuoYi 3 年之前
父節點
當前提交
0dfbb5fbf3
共有 4 個文件被更改,包括 39 次插入10 次删除
  1. 7 0
      pom.xml
  2. 3 2
      ruoyi-common/pom.xml
  3. 2 8
      ruoyi-common/ruoyi-common-datasource/pom.xml
  4. 27 0
      ruoyi-common/ruoyi-common-seata/pom.xml

+ 7 - 0
pom.xml

@@ -218,6 +218,13 @@
218 218
                 <version>${ruoyi.version}</version>
219 219
             </dependency>
220 220
 
221
+            <!-- 分布式事务 -->
222
+            <dependency>
223
+                <groupId>com.ruoyi</groupId>
224
+                <artifactId>ruoyi-common-seata</artifactId>
225
+                <version>${ruoyi.version}</version>
226
+            </dependency>
227
+
221 228
             <!-- 日志记录 -->
222 229
             <dependency>
223 230
                 <groupId>com.ruoyi</groupId>

+ 3 - 2
ruoyi-common/pom.xml

@@ -12,17 +12,18 @@
12 12
         <module>ruoyi-common-log</module>
13 13
         <module>ruoyi-common-core</module>
14 14
         <module>ruoyi-common-redis</module>
15
+        <module>ruoyi-common-seata</module>
15 16
         <module>ruoyi-common-swagger</module>
16 17
         <module>ruoyi-common-security</module>
17 18
         <module>ruoyi-common-datascope</module>
18
-		<module>ruoyi-common-datasource</module>
19
+        <module>ruoyi-common-datasource</module>
19 20
     </modules>
20 21
 
21 22
     <artifactId>ruoyi-common</artifactId>
22 23
     <packaging>pom</packaging>
23 24
 
24 25
     <description>
25
-	    ruoyi-common通用模块
26
+        ruoyi-common通用模块
26 27
     </description>
27 28
 
28 29
 </project>

+ 2 - 8
ruoyi-common/ruoyi-common-datasource/pom.xml

@@ -10,14 +10,14 @@
10 10
     <modelVersion>4.0.0</modelVersion>
11 11
     
12 12
     <artifactId>ruoyi-common-datasource</artifactId>
13
-	
13
+
14 14
     <description>
15 15
         ruoyi-common-datasource多数据源
16 16
     </description>
17 17
 
18 18
     <dependencies>
19 19
 
20
-		<!-- Druid -->
20
+        <!-- Druid -->
21 21
         <dependency>
22 22
             <groupId>com.alibaba</groupId>
23 23
             <artifactId>druid-spring-boot-starter</artifactId>
@@ -30,12 +30,6 @@
30 30
             <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
31 31
             <version>${dynamic-ds.version}</version>
32 32
         </dependency>
33
-        
34
-        <!-- SpringBoot Seata -->
35
-        <dependency>
36
-            <groupId>com.alibaba.cloud</groupId>
37
-            <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
38
-        </dependency>
39 33
 
40 34
     </dependencies>
41 35
 </project>

+ 27 - 0
ruoyi-common/ruoyi-common-seata/pom.xml

@@ -0,0 +1,27 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+         xmlns="http://maven.apache.org/POM/4.0.0"
4
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+    <parent>
6
+        <groupId>com.ruoyi</groupId>
7
+        <artifactId>ruoyi-common</artifactId>
8
+        <version>3.6.0</version>
9
+    </parent>
10
+    <modelVersion>4.0.0</modelVersion>
11
+
12
+    <artifactId>ruoyi-common-seata</artifactId>
13
+
14
+    <description>
15
+        ruoyi-common-seata分布式事务
16
+    </description>
17
+
18
+    <dependencies>
19
+
20
+        <!-- SpringBoot Seata -->
21
+        <dependency>
22
+            <groupId>com.alibaba.cloud</groupId>
23
+            <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
24
+        </dependency>
25
+
26
+    </dependencies>
27
+</project>